void CClientVariables::LoadDefaults ( void ) { #define DEFAULT(__x,__y) if(!Exists(__x)) \ Set(__x,__y) #define _S(__x) std::string(__x) if(!Exists("nick")) { DEFAULT ( "nick", _S(GenerateNickname()) ); // nickname CCore::GetSingleton ().RequestNewNickOnStart(); // Request the user to set a new nickname } DEFAULT ( "host", _S("127.0.0.1") ); // hostname DEFAULT ( "port", 22003 ); // port DEFAULT ( "password", _S("") ); // password DEFAULT ( "qc_host", _S("127.0.0.1") ); // quick connect hostname DEFAULT ( "qc_port", 22003 ); // quick connect port DEFAULT ( "qc_password", _S("") ); // quick connect password DEFAULT ( "debugfile", _S("") ); // debug filename DEFAULT ( "console_pos", CVector2D ( 0, 0 ) ); // console position DEFAULT ( "console_size", CVector2D ( 200, 200 ) ); // console size DEFAULT ( "serverbrowser_size", CVector2D ( 720.0f, 495.0f ) ); // serverbrowser size DEFAULT ( "fps_limit", 100 ); // frame limiter DEFAULT ( "chat_font", 0 ); // chatbox font type DEFAULT ( "chat_lines", 7 ); // chatbox lines DEFAULT ( "chat_color", CColor (0,0,128,100) ); // chatbox color DEFAULT ( "chat_input_color", CColor (0,0,191,110) ); // chatbox input color DEFAULT ( "chat_input_prefix_color", CColor (172,213,254,255) ); // chatbox prefix input color DEFAULT ( "chat_input_text_color", CColor (172,213,254,255) ); // chatbox text input color DEFAULT ( "chat_scale", CVector2D ( 1.0f, 1.0f ) ); // chatbox scale DEFAULT ( "chat_width", 1.0f ); // chatbox width DEFAULT ( "chat_css_style_text", false ); // chatbox css/hl style text DEFAULT ( "chat_css_style_background", false ); // chatbox css/hl style background DEFAULT ( "chat_line_life", 12000 ); // chatbox line life time DEFAULT ( "chat_line_fade_out", 3000 ); // chatbox line fade out time DEFAULT ( "chat_use_cegui", false ); // chatbox uses cegui DEFAULT ( "text_scale", 1.0f ); // text scale DEFAULT ( "invert_mouse", false ); // mouse inverting DEFAULT ( "fly_with_mouse", false ); // flying with mouse controls DEFAULT ( "steer_with_mouse", false ); // steering with mouse controls DEFAULT ( "classic_controls", false ); // classic/standard controls DEFAULT ( "mtavolume", 1.0f ); // custom sound's volume DEFAULT ( "voicevolume", 1.0f ); // voice chat output volume DEFAULT ( "async_loading", 1 ); // loading while crashing DEFAULT ( "mapalpha", 155 ); // map alpha DEFAULT ( "browser_speed", 2 ); // Browser speed DEFAULT ( "single_download", 0 ); // Single connection for downloads DEFAULT ( "code_path", 0 ); // Code path DEFAULT ( "update_build_type", 0 ); // 0-stable 1-test 2-nightly DEFAULT ( "volumetric_shadows", 0 ); // Enable volumetric shadows DEFAULT ( "aspect_ratio", 0 ); // Display aspect ratio // We will default this one at CClientGame.cpp, because we need a valid direct3d device to give a proper default value. #if 0 DEFAULT ( "streaming_memory", 50 ); // Streaming memory #endif }
void CClientVariables::LoadDefaults ( void ) { #define DEFAULT(__x,__y) if(!Exists(__x)) \ Set(__x,__y) #define _S(__x) std::string(__x) if(!Exists("nick")) { DEFAULT ( "nick", _S(GenerateNickname()) ); // nickname CCore::GetSingleton ().RequestNewNickOnStart(); // Request the user to set a new nickname } DEFAULT ( "host", _S("127.0.0.1") ); // hostname DEFAULT ( "port", 22003 ); // port DEFAULT ( "password", _S("") ); // password DEFAULT ( "qc_host", _S("127.0.0.1") ); // quick connect hostname DEFAULT ( "qc_port", 22003 ); // quick connect port DEFAULT ( "qc_password", _S("") ); // quick connect password DEFAULT ( "debugfile", _S("") ); // debug filename DEFAULT ( "console_pos", CVector2D ( 0, 0 ) ); // console position DEFAULT ( "console_size", CVector2D ( 200, 200 ) ); // console size DEFAULT ( "serverbrowser_size", CVector2D ( 720.0f, 495.0f ) ); // serverbrowser size DEFAULT ( "fps_limit", 100 ); // frame limiter DEFAULT ( "chat_font", 0 ); // chatbox font type DEFAULT ( "chat_lines", 7 ); // chatbox lines DEFAULT ( "chat_color", CColor (0,0,128,100) ); // chatbox color DEFAULT ( "chat_text_color", CColor (172,213,254,255) ); // chatbox text color DEFAULT ( "chat_input_color", CColor (0,0,191,110) ); // chatbox input color DEFAULT ( "chat_input_prefix_color", CColor (172,213,254,255) ); // chatbox prefix input color DEFAULT ( "chat_input_text_color", CColor (172,213,254,255) ); // chatbox text input color DEFAULT ( "chat_scale", CVector2D ( 1.0f, 1.0f ) ); // chatbox scale DEFAULT ( "chat_width", 1.0f ); // chatbox width DEFAULT ( "chat_css_style_text", false ); // chatbox css/hl style text DEFAULT ( "chat_css_style_background", false ); // chatbox css/hl style background DEFAULT ( "chat_line_life", 12000 ); // chatbox line life time DEFAULT ( "chat_line_fade_out", 3000 ); // chatbox line fade out time DEFAULT ( "chat_use_cegui", false ); // chatbox uses cegui DEFAULT ( "text_scale", 1.0f ); // text scale DEFAULT ( "invert_mouse", false ); // mouse inverting DEFAULT ( "fly_with_mouse", false ); // flying with mouse controls DEFAULT ( "steer_with_mouse", false ); // steering with mouse controls DEFAULT ( "classic_controls", false ); // classic/standard controls DEFAULT ( "mtavolume", 1.0f ); // custom sound's volume DEFAULT ( "voicevolume", 1.0f ); // voice chat output volume DEFAULT ( "mapalpha", 155 ); // map alpha DEFAULT ( "browser_speed", 2 ); // Browser speed DEFAULT ( "single_download", 0 ); // Single connection for downloads DEFAULT ( "update_build_type", 0 ); // 0-stable 1-test 2-nightly DEFAULT ( "volumetric_shadows", 0 ); // Enable volumetric shadows DEFAULT ( "aspect_ratio", 0 ); // Display aspect ratio DEFAULT ( "hud_match_aspect_ratio", 1 ); // GTA HUD should match the display aspect ratio DEFAULT ( "anisotropic", 0 ); // Anisotropic filtering DEFAULT ( "grass", 1 ); // Enable grass DEFAULT ( "heat_haze", 1 ); // Enable heat haze DEFAULT ( "fast_clothes_loading", 1 ); // 0-off 1-auto 2-on DEFAULT ( "allow_screen_upload", 1 ); // 0-off 1-on DEFAULT ( "max_clientscript_log_kb", 5000 ); // Max size in KB (0-No limit) DEFAULT ( "display_fullscreen_style", 0 ); // 0-standard 1-borderless 2-borderless keep res 3-borderless stretch DEFAULT ( "display_windowed", 0 ); // 0-off 1-on DEFAULT ( "multimon_fullscreen_minimize", 1 ); // 0-off 1-on DEFAULT ( "vertical_aim_sensitivity", 0.0015f ); // 0.0015f is GTA default setting DEFAULT ( "process_priority", 0 ); // 0-normal 1-above normal 2-high DEFAULT ( "mute_sfx_when_minimized", 0 ); // 0-off 1-on DEFAULT ( "mute_radio_when_minimized", 0 ); // 0-off 1-on DEFAULT ( "mute_mta_when_minimized", 0 ); // 0-off 1-on DEFAULT ( "mute_voice_when_minimized", 0 ); // 0-off 1-on // We will default this one at CClientGame.cpp, because we need a valid direct3d device to give a proper default value. #if 0 DEFAULT ( "streaming_memory", 50 ); // Streaming memory #endif }