@@ -26,7 +26,7 @@ static u32 init_counter = 0;
2626
2727// . extern xr_vector<shared_str>* LogFile;
2828
29- void xrCore::_initialize (LPCSTR _ApplicationName, LogCallback cb, BOOL init_fs, LPCSTR fs_fname, bool plugin)
29+ void xrCore::Initialize (pcstr _ApplicationName, LogCallback cb, bool init_fs, pcstr fs_fname, bool plugin)
3030{
3131 xr_strcpy (ApplicationName, _ApplicationName);
3232 if (0 == init_counter)
@@ -36,13 +36,13 @@ void xrCore::_initialize(LPCSTR _ApplicationName, LogCallback cb, BOOL init_fs,
3636 // HRESULT co_res =
3737 Params = xr_strdup (GetCommandLine ());
3838 if (!strstr (Params, " -editor" ))
39- CoInitializeEx (NULL , COINIT_MULTITHREADED);
39+ CoInitializeEx (nullptr , COINIT_MULTITHREADED);
4040
4141 string_path fn, dr, di;
4242
4343 // application path
4444 GetModuleFileName (GetModuleHandle (" xrCore" ), fn, sizeof (fn));
45- _splitpath (fn, dr, di, 0 , 0 );
45+ _splitpath (fn, dr, di, nullptr , nullptr );
4646 strconcat (sizeof (ApplicationPath), ApplicationPath, dr, di);
4747
4848#ifdef _EDITOR
@@ -87,10 +87,10 @@ void xrCore::_initialize(LPCSTR _ApplicationName, LogCallback cb, BOOL init_fs,
8787 }
8888 if (init_fs)
8989 {
90- u32 flags = 0 ;
91- if (0 != strstr (Params, " -build" ))
90+ u32 flags = 0u ;
91+ if (strstr (Params, " -build" ) != nullptr )
9292 flags |= CLocatorAPI::flBuildCopy;
93- if (0 != strstr (Params, " -ebuild" ))
93+ if (strstr (Params, " -ebuild" ) != nullptr )
9494 flags |= CLocatorAPI::flBuildCopy | CLocatorAPI::flEBuildCopy;
9595#ifdef DEBUG
9696 if (strstr (Params, " -cache" ))
@@ -105,11 +105,11 @@ void xrCore::_initialize(LPCSTR _ApplicationName, LogCallback cb, BOOL init_fs,
105105
106106#ifndef _EDITOR
107107#ifndef ELocatorAPIH
108- if (0 != strstr (Params, " -file_activity" ))
108+ if (strstr (Params, " -file_activity" ) != nullptr )
109109 flags |= CLocatorAPI::flDumpFileActivity;
110110#endif
111111#endif
112- FS._initialize (flags, 0 , fs_fname);
112+ FS._initialize (flags, nullptr , fs_fname);
113113 CalculateBuildId ();
114114 Msg (" '%s' build %d, %s\n " , " xrCore" , buildId, buildDate);
115115 EFS._initialize ();
@@ -201,7 +201,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD ul_reason_for_call, LPVOID lpvRese
201201 break ;
202202 case DLL_THREAD_ATTACH:
203203 if (!strstr (GetCommandLine (), " -editor" ))
204- CoInitializeEx (NULL , COINIT_MULTITHREADED);
204+ CoInitializeEx (nullptr , COINIT_MULTITHREADED);
205205 timeBeginPeriod (1 );
206206 break ;
207207 case DLL_THREAD_DETACH: break ;
0 commit comments