Skip to content

Commit

Permalink
xrCore: Always calculate build id
Browse files Browse the repository at this point in the history
Moved log message to be right after log initialization
  • Loading branch information
Xottab-DUTY committed Nov 4, 2017
1 parent e14932a commit 8f27f2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xrCore/xrCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ static u32 init_counter = 0;

void xrCore::Initialize(pcstr _ApplicationName, LogCallback cb, bool init_fs, pcstr fs_fname, bool plugin)
{
CalculateBuildId();
xr_strcpy(ApplicationName, _ApplicationName);
if (0 == init_counter)
{
Expand Down Expand Up @@ -72,6 +73,7 @@ void xrCore::Initialize(pcstr _ApplicationName, LogCallback cb, bool init_fs, pc
DUMP_PHASE;

InitLog();
Msg("'%s' build %d, %s\n", "xrCore", buildId, buildDate);
_initialize_cpu();
R_ASSERT(CPU::ID.hasFeature(CpuFeature::Sse));
ttapi_Init(CPU::ID);
Expand Down Expand Up @@ -110,8 +112,6 @@ void xrCore::Initialize(pcstr _ApplicationName, LogCallback cb, bool init_fs, pc
#endif
#endif
FS._initialize(flags, nullptr, fs_fname);
CalculateBuildId();
Msg("'%s' build %d, %s\n", "xrCore", buildId, buildDate);
EFS._initialize();
#ifdef DEBUG
#ifndef _EDITOR
Expand Down

0 comments on commit 8f27f2d

Please sign in to comment.