44void XRNETSERVER_API fill_auth_check_params (xr_auth_strings_t & ignore, xr_auth_strings_t & check)
55{
66 string_path config;
7- LPCSTR pth = FS.get_path (" $app_data_root$" )->m_Path ;
7+ pcstr pth = FS.get_path (" $app_data_root$" )->m_Path ;
88 ignore.push_back (shared_str (pth));
99 ignore.push_back (shared_str (FS.update_path (config, " $game_config$" , " localization.ltx" )));
1010 ignore.push_back (shared_str (FS.update_path (config, " $game_config$" , " fonts.ltx" )));
@@ -13,7 +13,7 @@ void XRNETSERVER_API fill_auth_check_params(xr_auth_strings_t& ignore, xr_auth_s
1313 ignore.push_back (shared_str (FS.update_path (config, " $game_config$" , " gameplay" )));
1414 ignore.push_back (shared_str (FS.update_path (config, " $game_config$" , " ui" )));
1515 ignore.push_back (shared_str (FS.update_path (config, " $game_config$" , " scripts" )));
16- ignore.push_back (shared_str (FS.update_path (config, " $game_config$" , " misc\\ script_sound_pripyat.ltx" )));
16+ ignore.push_back (shared_str (FS.update_path (config, " $game_config$" , " misc// script_sound_pripyat.ltx" )));
1717 ignore.push_back (shared_str (FS.update_path (config, " $game_scripts$" , " state_mgr_pri_a15.script" )));
1818
1919 check.push_back (shared_str (FS.update_path (config, " $game_config$" , " " )));
@@ -24,33 +24,32 @@ void XRNETSERVER_API fill_auth_check_params(xr_auth_strings_t& ignore, xr_auth_s
2424 check.push_back (shared_str (FS.update_path (config, " $game_sounds$" , " weapons" )));
2525
2626 // check scopes
27- check.push_back (shared_str (FS.update_path (config, " $game_textures$" , " wpn\\ wpn_crosshair.dds" )));
28- check.push_back (shared_str (FS.update_path (config, " $game_textures$" , " wpn\\ wpn_crosshair_bino.dds" )));
29- check.push_back (shared_str (FS.update_path (config, " $game_textures$" , " wpn\\ wpn_crosshair_g36.dds" )));
30- check.push_back (shared_str (FS.update_path (config, " $game_textures$" , " wpn\\ wpn_crosshair_l85.dds" )));
31- check.push_back (shared_str (FS.update_path (config, " $game_textures$" , " wpn\\ wpn_crosshair_rpg.dds" )));
27+ check.push_back (shared_str (FS.update_path (config, " $game_textures$" , " wpn// wpn_crosshair.dds" )));
28+ check.push_back (shared_str (FS.update_path (config, " $game_textures$" , " wpn// wpn_crosshair_bino.dds" )));
29+ check.push_back (shared_str (FS.update_path (config, " $game_textures$" , " wpn// wpn_crosshair_g36.dds" )));
30+ check.push_back (shared_str (FS.update_path (config, " $game_textures$" , " wpn// wpn_crosshair_l85.dds" )));
31+ check.push_back (shared_str (FS.update_path (config, " $game_textures$" , " wpn// wpn_crosshair_rpg.dds" )));
3232
3333 check.push_back (shared_str (" xrD3D9-Null" ));
3434 check.push_back (shared_str (" ODE" ));
3535 check.push_back (shared_str (" xrCDB" ));
3636 check.push_back (shared_str (" xrCore" ));
37- // check.push_back (shared_str("xrGame"));
37+ // check.push_back(shared_str("xrGame"));
3838 check.push_back (shared_str (" xrGamespy" ));
3939 check.push_back (shared_str (" xrNetserver" ));
4040 check.push_back (shared_str (" xrParticles" ));
4141 check.push_back (shared_str (" xrRender_R1" ));
4242 check.push_back (shared_str (" xrRender_R2" ));
4343 check.push_back (shared_str (" xrSound" ));
4444 check.push_back (shared_str (" xrXMLParser" ));
45- // check.push_back (shared_str("xrEngine.exe"));
45+ // check.push_back(shared_str("xrEngine.exe"));
4646}
4747
48- bool XRNETSERVER_API allow_to_include_path (xr_auth_strings_t const & ignore, LPCSTR path)
48+ bool XRNETSERVER_API allow_to_include_path (xr_auth_strings_t const & ignore, pcstr path)
4949{
5050 for (xr_auth_strings_t ::const_iterator i = ignore.begin (), ie = ignore.end (); i != ie; ++i)
51- {
5251 if (!strncmp (i->c_str (), path, i->size ()))
5352 return false ;
54- }
53+
5554 return true ;
5655}
0 commit comments