|
Pol
Revision:cb584c9
|
#include <polcfg.h>
Public Member Functions | |
| bool | report_program_aborts () |
| Returns true if program aborts are reported. More... | |
Static Public Member Functions | |
| static void | read_pol_config (bool initial_load) |
| static void | reload_pol_cfg () |
Static Public Attributes | |
| static struct stat | pol_cfg_stat |
|
static |
The profiler needs to gather some data before the pol.cfg file gets loaded, so when it turns out to be disabled, or when it was enabled before, but is being disabled now, run "garbage collection" to free the allocated resources
Definition at line 46 of file polcfg.cpp.
References account_save, allow_multi_clients_per_account, assertion_shutdown_save_type, cache_interactive_scripts, Pol::Crypt::CalculateCryptKeys(), character_slots, check_integrity, Pol::Core::CPropProfiler::clear(), client_encryption_version, Pol::Plib::SystemState::config, Pol::Clib::ExceptionParser::configureProgramAbortReportingSystem(), count_resource_tiles, debug_level, debug_local_only, debug_password, debug_port, DISABLE_DEBUGLOG, disable_nagle, discard_old_events, display_unknown_packets, enable_debug_log, enable_secure_trading, enforce_mount_objtype, Pol::Bscript::escript_config, exp_los_checks_map, EXTOBJ_HIGHEST_DEFAULT, Pol::Core::gamestate, ignore_load_errors, inactivity_disconnect_timeout, inactivity_warning_timeout, inhibit_saves, Pol::Core::CPropProfiler::instance(), listen_port, log_script_cycles, log_sysload, log_traces_when_stuck, Pol::Clib::LogfileTimestampEveryLine, loglevel, Pol::Bscript::EScriptConfig::max_call_depth, max_clients, max_clients_bypass_cmdlevel, max_objtype, max_tile_id, min_cmdlevel_to_login, min_cmdlvl_ignore_inactivity, minidump_type, multithread, Pol::Clib::normalized_dir_form(), Pol::Clib::passert_abort, Pol::Clib::passert_dump_stack, Pol::Clib::passert_nosave, Pol::Clib::passert_shutdown, pidfile_path, POLLOG_ERROR, profile_cprops, Pol::Clib::ConfigFile::readraw(), realm_data_path, Pol::Clib::ConfigElem::remove_bool(), Pol::Clib::ConfigElem::remove_int(), Pol::Clib::ConfigElem::remove_string(), Pol::Clib::ConfigElem::remove_ulong(), Pol::Clib::ConfigElem::remove_unsigned(), Pol::Clib::ConfigElem::remove_ushort(), report_critical_scripts, report_missing_configs, report_rtc_scripts, require_spellbooks, retain_cleartext_passwords, runaway_script_threshold, Pol::Core::SAVE_FULL, Pol::Core::SAVE_INCREMENTAL, select_timeout_usecs, Pol::Clib::MiniDumper::SetMiniDumpType(), show_realm_info, show_speech_colors, shutdown_save_type, single_thread_decay, Pol::Clib::strlower(), Pol::Plib::systemstate, thread_decay_statistics, uo_datafile_root, UOBJ_DEFAULT_MAX, UOBJ_HSA_MAX, UOBJ_SA_MAX, use_single_thread_login, verbose, watch_mapcache, watch_rpm, watch_sysload, web_server, web_server_debug, web_server_local_only, web_server_password, web_server_port, world_data_path, and Pol::Core::GameState::write_account_task.
Referenced by Pol::Core::reload_configuration(), reload_pol_cfg(), and Pol::xmain_inner().
|
static |
Definition at line 281 of file polcfg.cpp.
References pol_cfg_stat, POLLOG_ERROR, POLLOG_INFO, read_pol_config(), and THREAD_CHECKPOINT.
| bool Pol::Core::PolConfig::report_program_aborts | ( | ) |
Returns true if program aborts are reported.
Definition at line 306 of file polcfg.cpp.
References Pol::Clib::ExceptionParser::programAbortReporting().
| int Pol::Core::PolConfig::account_save |
Definition at line 90 of file polcfg.h.
Referenced by read_pol_config().
| bool Pol::Core::PolConfig::allow_multi_clients_per_account |
Definition at line 67 of file polcfg.h.
Referenced by Pol::Core::handle_delete_character(), and read_pol_config().
| int Pol::Core::PolConfig::assertion_shutdown_save_type |
Definition at line 86 of file polcfg.h.
Referenced by read_pol_config(), and Pol::xmain_inner().
| bool Pol::Core::PolConfig::cache_interactive_scripts |
Definition at line 51 of file polcfg.h.
Referenced by Pol::Items::Item::double_click(), Pol::Module::UOExecutorModule::mf_UseItem(), read_pol_config(), Pol::Mobile::Character::run_hit_script(), Pol::Core::StartSkillScript(), Pol::Items::Item::walk_on(), and Pol::Multi::UHouse::walk_on().
| unsigned short Pol::Core::PolConfig::character_slots |
Definition at line 65 of file polcfg.h.
Referenced by Pol::Accounts::Account::Account(), Pol::Accounts::AccountObjImp::call_method_id(), Pol::Mobile::Character::charindex(), Pol::Core::GameState::cleanup_vars(), Pol::Core::ClientCreateChar(), Pol::Core::ClientCreateChar70160(), Pol::Accounts::Account::getnextfreeslot(), Pol::Accounts::Account::has_active_characters(), Pol::Accounts::Account::numchars(), read_pol_config(), Pol::Core::send_start(), Pol::Accounts::Account::~Account(), and Pol::Mobile::Character::~Character().
| bool Pol::Core::PolConfig::check_integrity |
Definition at line 39 of file polcfg.h.
Referenced by read_pol_config().
| Crypt::TCryptInfo Pol::Core::PolConfig::client_encryption_version |
Definition at line 43 of file polcfg.h.
Referenced by Pol::Core::check_incoming_data(), and read_pol_config().
| bool Pol::Core::PolConfig::count_resource_tiles |
Definition at line 42 of file polcfg.h.
Referenced by read_pol_config().
| unsigned short Pol::Core::PolConfig::debug_level |
Definition at line 78 of file polcfg.h.
Referenced by read_pol_config().
| bool Pol::Core::PolConfig::debug_local_only |
Definition at line 74 of file polcfg.h.
Referenced by read_pol_config().
| std::string Pol::Core::PolConfig::debug_password |
Definition at line 73 of file polcfg.h.
Referenced by Pol::Core::DebugContext::process(), and read_pol_config().
| unsigned short Pol::Core::PolConfig::debug_port |
Definition at line 72 of file polcfg.h.
Referenced by read_pol_config().
| bool Pol::Core::PolConfig::disable_nagle |
Definition at line 93 of file polcfg.h.
Referenced by read_pol_config().
| bool Pol::Core::PolConfig::discard_old_events |
Definition at line 83 of file polcfg.h.
Referenced by read_pol_config().
| bool Pol::Core::PolConfig::display_unknown_packets |
Definition at line 68 of file polcfg.h.
Referenced by read_pol_config().
| bool Pol::Core::PolConfig::enable_debug_log |
Definition at line 70 of file polcfg.h.
Referenced by read_pol_config().
| bool Pol::Core::PolConfig::enable_secure_trading |
Definition at line 54 of file polcfg.h.
Referenced by read_pol_config().
| bool Pol::Core::PolConfig::enforce_mount_objtype |
Definition at line 95 of file polcfg.h.
Referenced by Pol::Mobile::Character::equippable(), and read_pol_config().
| bool Pol::Core::PolConfig::exp_los_checks_map |
Definition at line 69 of file polcfg.h.
Referenced by read_pol_config().
| bool Pol::Core::PolConfig::ignore_load_errors |
Definition at line 56 of file polcfg.h.
Referenced by read_pol_config().
| unsigned short Pol::Core::PolConfig::inactivity_disconnect_timeout |
Definition at line 59 of file polcfg.h.
Referenced by Pol::Core::client_io_thread(), and read_pol_config().
| unsigned short Pol::Core::PolConfig::inactivity_warning_timeout |
Definition at line 58 of file polcfg.h.
Referenced by read_pol_config().
| bool Pol::Core::PolConfig::inhibit_saves |
Definition at line 40 of file polcfg.h.
Referenced by read_pol_config().
| unsigned short Pol::Core::PolConfig::listen_port |
Definition at line 31 of file polcfg.h.
Referenced by read_pol_config(), and Pol::xmain_inner().
| bool Pol::Core::PolConfig::log_script_cycles |
Definition at line 41 of file polcfg.h.
Referenced by read_pol_config().
| bool Pol::Core::PolConfig::log_sysload |
Definition at line 37 of file polcfg.h.
Referenced by read_pol_config().
| bool Pol::Core::PolConfig::log_traces_when_stuck |
Definition at line 76 of file polcfg.h.
Referenced by read_pol_config().
| unsigned short Pol::Core::PolConfig::loglevel |
Definition at line 33 of file polcfg.h.
Referenced by read_pol_config().
| unsigned short Pol::Core::PolConfig::max_clients |
Definition at line 64 of file polcfg.h.
Referenced by Pol::Core::char_select(), and read_pol_config().
| unsigned short Pol::Core::PolConfig::max_clients_bypass_cmdlevel |
Definition at line 66 of file polcfg.h.
Referenced by Pol::Core::char_select(), and read_pol_config().
| unsigned int Pol::Core::PolConfig::max_objtype |
Definition at line 62 of file polcfg.h.
Referenced by Pol::Core::getObjtypeParam(), read_pol_config(), and Pol::Items::write_objtypes_txt().
| unsigned int Pol::Core::PolConfig::max_tile_id |
Definition at line 61 of file polcfg.h.
Referenced by Pol::Multi::CustomHouseDesign::AddMultiAtOffset(), Pol::UoConvert::create_tiles_cfg(), Pol::Plib::SystemState::estimatedSize(), Pol::Multi::CustomHouseDesign::IsStair(), Pol::Multi::CustomHouseDesign::IsStairBlock(), Pol::Core::load_tiles_cfg(), Pol::UoConvert::UoConvertMain::main(), Pol::UoTool::UoToolMain::main(), Pol::Core::newstat_dont_add(), read_pol_config(), Pol::Core::read_tiledata(), and Pol::Items::Item::setgraphic().
| unsigned short Pol::Core::PolConfig::min_cmdlevel_to_login |
Definition at line 60 of file polcfg.h.
Referenced by read_pol_config().
| unsigned short Pol::Core::PolConfig::min_cmdlvl_ignore_inactivity |
Definition at line 57 of file polcfg.h.
Referenced by Pol::Core::client_io_thread(), and read_pol_config().
| std::string Pol::Core::PolConfig::minidump_type |
Definition at line 88 of file polcfg.h.
Referenced by read_pol_config().
| unsigned short Pol::Core::PolConfig::multithread |
Definition at line 44 of file polcfg.h.
Referenced by read_pol_config().
| std::string Pol::Core::PolConfig::pidfile_path |
Definition at line 30 of file polcfg.h.
Referenced by read_pol_config(), and Pol::xmain_inner().
|
static |
Definition at line 111 of file polcfg.h.
Referenced by reload_pol_cfg().
| bool Pol::Core::PolConfig::profile_cprops |
Definition at line 50 of file polcfg.h.
Referenced by Pol::Module::PolSystemExecutorModule::mf_LogCPropProfile(), and read_pol_config().
| std::string Pol::Core::PolConfig::realm_data_path |
Definition at line 29 of file polcfg.h.
Referenced by read_pol_config().
| std::string Pol::Core::PolConfig::report_admin_email |
| bool Pol::Core::PolConfig::report_critical_scripts |
Definition at line 80 of file polcfg.h.
Referenced by read_pol_config().
| bool Pol::Core::PolConfig::report_missing_configs |
Definition at line 81 of file polcfg.h.
Referenced by read_pol_config().
| bool Pol::Core::PolConfig::report_rtc_scripts |
Definition at line 79 of file polcfg.h.
Referenced by read_pol_config().
| bool Pol::Core::PolConfig::require_spellbooks |
Definition at line 53 of file polcfg.h.
Referenced by read_pol_config().
| bool Pol::Core::PolConfig::retain_cleartext_passwords |
Definition at line 82 of file polcfg.h.
Referenced by read_pol_config().
| unsigned int Pol::Core::PolConfig::runaway_script_threshold |
Definition at line 55 of file polcfg.h.
Referenced by Pol::Core::ScriptExObjImp::get_member_id(), read_pol_config(), and Pol::Core::ScriptScheduler::run_ready().
| unsigned short Pol::Core::PolConfig::select_timeout_usecs |
Definition at line 34 of file polcfg.h.
Referenced by Pol::Core::check_incoming_data(), Pol::Core::client_io_thread(), and read_pol_config().
| bool Pol::Core::PolConfig::show_realm_info |
Definition at line 94 of file polcfg.h.
Referenced by read_pol_config().
| bool Pol::Core::PolConfig::show_speech_colors |
Definition at line 52 of file polcfg.h.
Referenced by read_pol_config().
| int Pol::Core::PolConfig::shutdown_save_type |
Definition at line 85 of file polcfg.h.
Referenced by read_pol_config(), and Pol::xmain_inner().
| bool Pol::Core::PolConfig::single_thread_decay |
Definition at line 96 of file polcfg.h.
Referenced by read_pol_config().
| bool Pol::Core::PolConfig::thread_decay_statistics |
Definition at line 97 of file polcfg.h.
Referenced by Pol::Core::decay_worldzone(), and read_pol_config().
| std::string Pol::Core::PolConfig::uo_datafile_root |
Definition at line 27 of file polcfg.h.
Referenced by Pol::UoConvert::UoConvertMain::main(), Pol::UoTool::UoToolMain::main(), Pol::Core::open_uo_file(), Pol::Core::open_uopmap_file(), Pol::UoTool::print_sndlist(), and read_pol_config().
| bool Pol::Core::PolConfig::use_single_thread_login |
Definition at line 91 of file polcfg.h.
Referenced by read_pol_config().
| bool Pol::Core::PolConfig::verbose |
Definition at line 32 of file polcfg.h.
Referenced by read_pol_config().
| bool Pol::Core::PolConfig::watch_mapcache |
Definition at line 38 of file polcfg.h.
Referenced by read_pol_config().
| bool Pol::Core::PolConfig::watch_rpm |
Definition at line 35 of file polcfg.h.
Referenced by read_pol_config().
| bool Pol::Core::PolConfig::watch_sysload |
Definition at line 36 of file polcfg.h.
Referenced by read_pol_config().
| bool Pol::Core::PolConfig::web_server |
Definition at line 45 of file polcfg.h.
Referenced by read_pol_config().
| unsigned short Pol::Core::PolConfig::web_server_debug |
Definition at line 48 of file polcfg.h.
Referenced by read_pol_config().
| bool Pol::Core::PolConfig::web_server_local_only |
Definition at line 47 of file polcfg.h.
Referenced by read_pol_config().
| std::string Pol::Core::PolConfig::web_server_password |
Definition at line 49 of file polcfg.h.
Referenced by read_pol_config().
| unsigned short Pol::Core::PolConfig::web_server_port |
Definition at line 46 of file polcfg.h.
Referenced by Pol::Core::http_thread(), and read_pol_config().
| std::string Pol::Core::PolConfig::world_data_path |
Definition at line 28 of file polcfg.h.
Referenced by Pol::Core::commit(), Pol::Core::commit_incremental(), Pol::Module::DataStoreFile::filename(), Pol::Core::import_new_data(), Pol::Core::load_incremental_indexes(), Pol::Module::DataFileExecutorModule::mf_CreateDataFile(), Pol::Accounts::read_account_data(), Pol::Core::read_data(), Pol::Module::read_datastore_dat(), Pol::Core::read_guilds_dat(), Pol::Core::read_incremental_saves(), Pol::Core::read_party_dat(), read_pol_config(), Pol::Core::read_pol_dat(), Pol::Core::read_resources_dat(), Pol::Core::read_storage_dat(), Pol::Accounts::reload_account_data(), Pol::Core::rndat(), Pol::Core::save_incremental(), and Pol::Accounts::write_account_data().