Enums

Constants

Functions

Allocates a memory chunk with size in bytes. Memory is guaranteed to be zero initialized

Frees up the memory chunk allocated with AllocMem

Returns the absolute path to the CLEO directory

Returns the absolute path to the current working directory (normally the game directory)

Reads a floating-point argument

Returns the current host (game) id

Copies atmost {maxlen} bytes of a UTF-8 encoded host name to {dest}

Reads an integer argument (32 or 64 bit depending on target platform)

Returns the current SDK version as an integer number.

Reads a string argument

Prints a new entry to the cleo_redux.log

Registers a new callback invoked on each main loop iteration (after scripts are executed)

Registers a new callback invoked on each main loop iteration (before scripts are executed)

Registers a new callback invoked on each runtime init event (new game, saved game load, or SDK’s RuntimeInit)

Registers a new callback handler for the command with the given name. Permission token is required for unsafe operations interacting with the user environment (e.g. mem, fs, net)

Registers a new loader for files matching a glob pattern

Resolves a path to the absolute path - absolute path gets resolved as is

Initializes or reloads CLEO runtime

Iterates the main loop

Writes the floating-point value

Sets the new host name (available in scripts as the HOST constant)

Writes the integer value (32 or 64 bit depending on target platform)

Writes the string value

Sets the status of the current condition

Type Definitions