mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Core: use fallback session UUID if CreateUUID fails
Instead of a hard application failure, use a fallback UUID.
This commit is contained in:
parent
a003e21f6e
commit
6ed6711426
@ -60,6 +60,13 @@ void SpdLog_Init(const bool bAnsiColor)
|
||||
|
||||
#ifndef _TOOLS
|
||||
g_LogSessionUUID = CreateUUID();
|
||||
|
||||
if (g_LogSessionUUID.empty())
|
||||
{
|
||||
// Fall-back directory in case of a failure.
|
||||
g_LogSessionUUID = "00000000-0000-0000-0000-000000000000";
|
||||
}
|
||||
|
||||
g_LogSessionDirectory = fmt::format("platform/logs/{:s}", g_LogSessionUUID);
|
||||
/************************
|
||||
* IMGUI LOGGER SETUP *
|
||||
|
Loading…
x
Reference in New Issue
Block a user