2323ENGINE_API bool g_dedicated_server = false ;
2424ENGINE_API CApplication *pApp = nullptr ;
2525ENGINE_API CInifile* pGameIni = nullptr ;
26- XRCORE_API const char *build_date;
27- XRCORE_API u32 build_id;
2826ENGINE_API bool g_bBenchmark = false ;
2927string512 g_sBenchmarkName;
3028ENGINE_API string512 g_sLaunchOnExit_params;
@@ -36,41 +34,6 @@ namespace
3634HWND logoWindow = nullptr ;
3735
3836void RunBenchmark (const char *name);
39-
40- void CalculateBuildId ()
41- {
42- const int startDay = 31 ;
43- const int startMonth = 1 ;
44- const int startYear = 1999 ;
45- const char *monthId[12 ] =
46- {
47- " Jan" , " Feb" , " Mar" , " Apr" , " May" , " Jun" , " Jul" , " Aug" , " Sep" , " Oct" , " Nov" , " Dec"
48- };
49- const int daysInMonth[12 ] =
50- {
51- 31 , 28 , 31 , 30 , 31 , 30 , 31 , 31 , 30 , 31 , 30 , 31
52- };
53- build_date = __DATE__;
54- int days;
55- int months = 0 ;
56- int years;
57- string16 month;
58- string256 buffer;
59- xr_strcpy (buffer, build_date);
60- sscanf (buffer, " %s %d %d" , month, &days, &years);
61- for (int i = 0 ; i<12 ; i++)
62- {
63- if (_stricmp (monthId[i], month))
64- continue ;
65- months = i;
66- break ;
67- }
68- build_id = (years- startYear)*365 +days-startDay;
69- for (int i = 0 ; i<months; i++)
70- build_id += daysInMonth[i];
71- for (int i = 0 ; i<startMonth-1 ; i++)
72- build_id -= daysInMonth[i];
73- }
7437}
7538
7639void InitEngine ()
@@ -397,7 +360,6 @@ int RunApplication(const char *commandLine)
397360 u32 sz = xr_strlen (fsltx);
398361 sscanf (strstr (commandLine, fsltx)+sz, " %[^ ] " , fsgame);
399362 }
400- CalculateBuildId ();
401363 Core._initialize (" xray" , NULL , TRUE , *fsgame ? fsgame : nullptr );
402364 InitSettings ();
403365 // Adjust player & computer name for Asian
0 commit comments