#include "ALEConfig.h" ALEConfig& ALEConfig::GetInstance() { static ALEConfig instance; return instance; } ALEConfig::ALEConfig() : ConfigValueCache(ALEConfigValues::CONFIG_VALUE_COUNT) { } void ALEConfig::Initialize(bool reload) { ConfigValueCache::Initialize(reload); } void ALEConfig::BuildConfigCache() { SetConfigValue(ALEConfigValues::ENABLED, "ALE.Enabled", "false"); SetConfigValue(ALEConfigValues::TRACEBACK_ENABLED, "ALE.TraceBack", "false"); SetConfigValue(ALEConfigValues::AUTORELOAD_ENABLED, "ALE.AutoReload", "false"); SetConfigValue(ALEConfigValues::BYTECODE_CACHE_ENABLED, "ALE.BytecodeCache", "false"); SetConfigValue(ALEConfigValues::SCRIPT_PATH, "ALE.ScriptPath", "lua_scripts"); SetConfigValue(ALEConfigValues::REQUIRE_PATH, "ALE.RequirePaths", ""); SetConfigValue(ALEConfigValues::REQUIRE_CPATH, "ALE.RequireCPaths", ""); SetConfigValue(ALEConfigValues::AUTORELOAD_INTERVAL, "ALE.AutoReloadInterval", 1); }