Skip to content

Commit 8f27f2d

Browse files
committed
xrCore: Always calculate build id
Moved log message to be right after log initialization
1 parent e14932a commit 8f27f2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/xrCore/xrCore.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ static u32 init_counter = 0;
2828

2929
void xrCore::Initialize(pcstr _ApplicationName, LogCallback cb, bool init_fs, pcstr fs_fname, bool plugin)
3030
{
31+
CalculateBuildId();
3132
xr_strcpy(ApplicationName, _ApplicationName);
3233
if (0 == init_counter)
3334
{
@@ -72,6 +73,7 @@ void xrCore::Initialize(pcstr _ApplicationName, LogCallback cb, bool init_fs, pc
7273
DUMP_PHASE;
7374

7475
InitLog();
76+
Msg("'%s' build %d, %s\n", "xrCore", buildId, buildDate);
7577
_initialize_cpu();
7678
R_ASSERT(CPU::ID.hasFeature(CpuFeature::Sse));
7779
ttapi_Init(CPU::ID);
@@ -110,8 +112,6 @@ void xrCore::Initialize(pcstr _ApplicationName, LogCallback cb, bool init_fs, pc
110112
#endif
111113
#endif
112114
FS._initialize(flags, nullptr, fs_fname);
113-
CalculateBuildId();
114-
Msg("'%s' build %d, %s\n", "xrCore", buildId, buildDate);
115115
EFS._initialize();
116116
#ifdef DEBUG
117117
#ifndef _EDITOR

0 commit comments

Comments
 (0)