Register Load Handler

Signature

bool registerLoadHandler(string id, function callback)

Description

Registers a load handler for a specific identifier that loads additional information for a save game.

Each identifier is loaded from a separate JSON file ({id}.json}) which is located in a directory named after the save game (e.g. FFXII_000.dir).

Returns whether the operation was successful (true) or not (false).

Arguments

Identifier

The unique identifier of the save data.

Callback

The Callback function that is executed when save data is loaded.

Notes

Multiple scripts can register a handler for the same identifier.

Identifiers are not validated during registration since it is unknown if they exist in a given save game.

Last updated