Skip to main content

Global Variables

Lua has no constant type, so some global variables are used to represent constants.

The path variables below are resolved at runtime according to the installation flavor. You normally do not need to care about the exact paths; on rootless or TrollStore editions the paths may live under a different mount point. If you need to construct a path under the system root manually, see jbroot.


Paths

XXT_HOME_PATH

XXT home directory
On jailbroken edition: /var/mobile/Media/1ferver/

XXT_RES_PATH

XXT resources directory
On jailbroken edition: /var/mobile/Media/1ferver/res/

XXT_SCRIPTS_PATH

XXT scripts directory
On jailbroken edition: /var/mobile/Media/1ferver/lua/scripts/

XXT_LUA_PATH

XXT Lua extension library directory
On jailbroken edition: /var/mobile/Media/1ferver/lua/

XXT_LIB_PATH

XXT C extension library directory
On jailbroken edition: /var/mobile/Media/1ferver/lib/

XXT_LOG_PATH

XXT logs directory
On jailbroken edition: /var/mobile/Media/1ferver/log/

Status

IS_TROLLSTORE_EDITION

Whether the current build is the TrollStore edition