Crate cleo_redux_sdk

source ·

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 CLEO Redux version as a string
Returns the absolute path to the current working directory (normally the game directory)
Returns the absolute path to the CLEO root directory or one of its sub-directories
Reads a floating-point argument
Returns the current host (game) id
Returns a host name The default value matches https://re.cleo.li/docs/en/api.html#host Can be changed with SetHostName
Reads an integer argument (32 or 64 bit depending on target platform)
Get number of active CS scripts
Get number of active JS scripts
Returns the current SDK version as an integer number.
Reads a string argument
Returns a memory address for the given symbol, or 0 if not found
Is end of arguments reached
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 invoked on a ShowTextBox function call. Providing a callback shadows built-in ShowTextBox implementation.
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 (accessible in scripts via the HOST constant)
Writes the integer value (32 or 64 bit depending on target platform)
Writes the string value
Triggers an event with the given name and data
Sets the status of the current condition

Type Definitions