MiniDoom

src/i_system.ml

Supplies portable timing, sleep, shutdown, fatal-error, low-memory allocation, and base command services to the engine.

Package
(global)
Reachable
Yes

Imports

Declarations

_I_basetime

_I_basetime

Tracks the mutable i basetime value used by the i system subsystem.

View source

_I_emptycmd

_I_emptycmd

Holds the optional i emptycmd resource used by the i system subsystem.

View source

_I_ExitProcess

inline function _I_ExitProcess(code)

Normalizes a non-integer exit status to failure and terminates through Win32.

ParameterTypeDefaultDescription
codedynamic—Code value supplied to `_I_ExitProcess`.

View source

_I_GetTickCount

inline function _I_GetTickCount()

Isolates the Win32 millisecond clock behind the engine's internal timing wrapper.

View source

_I_ShowFatalErrorBox

inline function _I_ShowFatalErrorBox(text)

Shows a fatal error message in a GUI dialog for windows-subsystem builds.

ParameterTypeDefaultDescription
textdynamic—Text to process.

View source

_I_Sleep

inline function _I_Sleep(ms)

Suspends the current thread for a non-negative duration through the platform-neutral standard time API.

ParameterTypeDefaultDescription
msdynamic—Ms value supplied to `_I_Sleep`.

View source

_I_StrContains

inline function _I_StrContains(haystack, needle)

Checks whether one string contains another.

ParameterTypeDefaultDescription
haystackdynamic—Haystack value supplied to `_I_StrContains`.
needledynamic—Needle value supplied to `_I_StrContains`.

View source

_I_ToLowerAscii

inline function _I_ToLowerAscii(s)

Converts a string to lowercase ASCII for robust message classification.

ParameterTypeDefaultDescription
sdynamic—S value supplied to `_I_ToLowerAscii`.

View source

_IS_IDiv

inline function _IS_IDiv(a, b)

Returns a signed quotient truncated toward zero, or zero for invalid operands and a zero divisor in `_IS_IDiv`

ParameterTypeDefaultDescription
adynamic—First input operand.
bdynamic—Second input operand.

View source

_ISYS_MB_ICONERROR

const _ISYS_MB_ICONERROR = 16

Defines isys mb iconerror for the i system subsystem.

View source

_ISYS_MB_OK

const _ISYS_MB_OK = 0

Defines isys mb ok for the i system subsystem.

View source

ExitProcess

extern function ExitProcess(code as int) from "kernel32.dll" returns int

Terminates the process immediately with the supplied operating-system exit code.

ParameterTypeDefaultDescription
codeint—`int` value supplied as code to `ExitProcess`.

Returns: Result returned by the native `ExitProcess` binding as `int`.

View source

GetTickCount

extern function GetTickCount() from "kernel32.dll" returns u32

Returns Win32's millisecond count since system startup for Doom tic timing.

Returns: Win32's millisecond count since system startup for Doom tic timing.

View source

I_AllocLow

function I_AllocLow(length)

Allocates a zeroed byte buffer for legacy callers that expect low-memory storage.

ParameterTypeDefaultDescription
lengthdynamic—Number of bytes or elements in the associated value.

View source

I_BaseTiccmd

function I_BaseTiccmd()

Returns a reusable zeroed tic-command record that platform input code may populate for the current game tic.

View source

I_BeginRead

function I_BeginRead()

Preserves the legacy disk-read activity hook; this backend requires no begin notification.

View source

I_EndRead

function I_EndRead()

Preserves the legacy disk-read activity hook; this backend requires no end notification.

View source

I_Error

function I_Error(msg)

Performs one-shot fatal shutdown, prints the diagnostic, releases subsystems, and terminates with a nonzero exit code.

ParameterTypeDefaultDescription
msgdynamic—Msg value supplied to `I_Error`.

View source

I_GetHeapSize

function I_GetHeapSize()

Converts the configured zone-heap size from mebibytes to bytes.

View source

I_GetTime

function I_GetTime()

Converts elapsed Win32 milliseconds since the first call into whole 35 Hz game tics.

View source

I_GetTimeFrac

function I_GetTimeFrac()

Returns the clamped fractional progress through the current 35 Hz tic for uncapped interpolation.

View source

I_Init

function I_Init()

Brings up the platform audio backend after core engine globals are available.

View source

I_Quit

function I_Quit()

Leaves the netgame, closes platform, audio, and graphics services, saves defaults, then exits successfully.

View source

I_Tactile

function I_Tactile(on, off, total)

Accepts legacy force-feedback parameters; this backend deliberately performs no tactile output.

ParameterTypeDefaultDescription
ondynamic—On value supplied to `I_Tactile`.
offdynamic—Zero-based byte or element offset.
totaldynamic—Total value supplied to `I_Tactile`.

View source

I_WaitVBL

function I_WaitVBL(count)

Sleeps for the requested number of 70 Hz vertical-blank intervals using millisecond platform timing.

ParameterTypeDefaultDescription
countdynamic—Number of elements or iterations to process.

View source

I_ZoneBase

function I_ZoneBase(sizeOut)

Allocates the requested zone heap, reports its actual size through the reference argument, and retains the buffer for engine-wide lifetime.

ParameterTypeDefaultDescription
sizeOutdynamic—Size out value supplied to `I_ZoneBase`.

View source

mb_used

mb_used

Tracks the mutable mb used value used by the i system subsystem.

View source