#include <l_util.h>
Static Public Member Functions | |
static void | Initialize (lua_State *L, int top) |
static void | InitializeAsync (lua_State *L, int top) |
static void | InitializeClient (lua_State *L, int top) |
static void | InitializeAsync (AsyncEngine &engine) |
Static Public Member Functions inherited from ModApiBase | |
static ScriptApiBase * | getScriptApiBase (lua_State *L) |
static Server * | getServer (lua_State *L) |
static ServerInventoryManager * | getServerInventoryMgr (lua_State *L) |
static Client * | getClient (lua_State *L) |
static GUIEngine * | getGuiEngine (lua_State *L) |
static IGameDef * | getGameDef (lua_State *L) |
static Environment * | getEnv (lua_State *L) |
static std::string | getCurrentModPath (lua_State *L) |
template<typename T > | |
static T * | getScriptApi (lua_State *L) |
static bool | registerFunction (lua_State *L, const char *name, lua_CFunction func, int top) |
static int | l_deprecated_function (lua_State *L, const char *good, const char *bad, lua_CFunction func) |
A wrapper for deprecated functions. More... | |
Static Private Member Functions | |
static int | l_log (lua_State *L) |
static int | l_get_us_time (lua_State *L) |
static int | l_parse_json (lua_State *L) |
static int | l_write_json (lua_State *L) |
static int | l_get_dig_params (lua_State *L) |
static int | l_get_hit_params (lua_State *L) |
static int | l_check_password_entry (lua_State *L) |
static int | l_get_password_hash (lua_State *L) |
static int | l_is_yes (lua_State *L) |
static int | l_get_builtin_path (lua_State *L) |
static int | l_get_user_path (lua_State *L) |
static int | l_compress (lua_State *L) |
static int | l_decompress (lua_State *L) |
static int | l_mkdir (lua_State *L) |
static int | l_get_dir_list (lua_State *L) |
static int | l_safe_file_write (lua_State *L) |
static int | l_request_insecure_environment (lua_State *L) |
static int | l_encode_base64 (lua_State *L) |
static int | l_decode_base64 (lua_State *L) |
static int | l_get_version (lua_State *L) |
static int | l_sha1 (lua_State *L) |
Additional Inherited Members | |
Protected Member Functions inherited from LuaHelper | |
template<> | |
bool | readParam (lua_State *L, int index) |
Static Protected Member Functions inherited from LuaHelper | |
static bool | isNaN (lua_State *L, int idx) |
template<typename T > | |
static T | readParam (lua_State *L, int index) |
Read a value using a template type T from Lua State L and index. More... | |
template<typename T > | |
static T | readParam (lua_State *L, int index, const T &default_value) |
Read a value using a template type T from Lua State L and index. More... | |
|
static |
References API_FCT, compress(), LuaSettings::create(), decompress(), g_settings, g_settings_path, and is_yes().
Referenced by MainMenuScripting::initializeModApi(), and ServerScripting::InitializeModApi().
|
static |
|
static |
References API_FCT, compress(), LuaSettings::create(), decompress(), g_settings, g_settings_path, and is_yes().
Referenced by MainMenuScripting::initializeModApi().
|
static |
References API_FCT, compress(), decompress(), and is_yes().
Referenced by ClientScripting::InitializeModApi().
|
staticprivate |
References base64_is_valid(), decode_srp_verifier_and_salt(), generate_srp_verifier(), hash(), NO_MAP_LOCK_REQUIRED, translate_password(), and warningstream.
|
staticprivate |
|
staticprivate |
References base64_decode(), base64_is_valid(), and NO_MAP_LOCK_REQUIRED.
|
staticprivate |
|
staticprivate |
|
staticprivate |
References DIR_DELIM, NO_MAP_LOCK_REQUIRED, and porting::path_share.
|
staticprivate |
References getDigParams(), NO_MAP_LOCK_REQUIRED, push_dig_params(), read_groups(), and read_tool_capabilities().
|
staticprivate |
References CHECK_SECURE_PATH, fs::GetDirListing(), and NO_MAP_LOCK_REQUIRED.
|
staticprivate |
References getHitParams(), NO_MAP_LOCK_REQUIRED, push_hit_params(), read_groups(), and read_tool_capabilities().
|
staticprivate |
References hash(), NO_MAP_LOCK_REQUIRED, and translate_password().
|
staticprivate |
References porting::getTimeUs(), and NO_MAP_LOCK_REQUIRED.
|
staticprivate |
References NO_MAP_LOCK_REQUIRED, and porting::path_user.
|
staticprivate |
References g_version_hash, g_version_string, PROJECT_NAME_C, and table.
|
staticprivate |
|
staticprivate |
References g_logger, LL_MAX, LL_NONE, Logger::log(), log_deprecated(), NO_MAP_LOCK_REQUIRED, Logger::stringToLevel(), and warningstream.
|
staticprivate |
References CHECK_SECURE_PATH, fs::CreateAllDirs(), and NO_MAP_LOCK_REQUIRED.
|
staticprivate |
References errorstream, NO_MAP_LOCK_REQUIRED, push_json_value(), and warningstream.
|
staticprivate |
References CUSTOM_RIDX_CURRENT_MOD_NAME, CUSTOM_RIDX_GLOBALS_BACKUP, FATAL_ERROR_IF, g_settings, Settings::get(), ScriptApiSecurity::isSecure(), NO_MAP_LOCK_REQUIRED, and str_split().
|
staticprivate |
References CHECK_SECURE_PATH, NO_MAP_LOCK_REQUIRED, and fs::safeWriteToFile().
|
staticprivate |
References SHA1::addBytes(), SHA1::getDigest(), hex_encode(), and NO_MAP_LOCK_REQUIRED.
|
staticprivate |
References fastWriteJson(), NO_MAP_LOCK_REQUIRED, read_json_value(), and BaseException::what().