[Logging]: Fix (#896)
This commit is contained in:
parent
daf6da1cfa
commit
bacaec491f
@ -8,7 +8,7 @@ namespace Components
|
|||||||
std::mutex Logger::MessageMutex;
|
std::mutex Logger::MessageMutex;
|
||||||
std::vector<std::string> Logger::MessageQueue;
|
std::vector<std::string> Logger::MessageQueue;
|
||||||
|
|
||||||
std::mutex Logger::LoggingMutex;
|
std::recursive_mutex Logger::LoggingMutex;
|
||||||
std::vector<Network::Address> Logger::LoggingAddresses[2];
|
std::vector<Network::Address> Logger::LoggingAddresses[2];
|
||||||
|
|
||||||
Dvar::Var Logger::IW4x_oneLog;
|
Dvar::Var Logger::IW4x_oneLog;
|
||||||
@ -223,7 +223,9 @@ namespace Components
|
|||||||
|
|
||||||
void Logger::RedirectOSPath(const char* file, char* folder)
|
void Logger::RedirectOSPath(const char* file, char* folder)
|
||||||
{
|
{
|
||||||
if (std::strcmp((*Game::g_log)->current.string, file) == 0)
|
const auto* g_log = (*Game::g_log) ? (*Game::g_log)->current.string : "";
|
||||||
|
|
||||||
|
if (std::strcmp(g_log, file) == 0)
|
||||||
{
|
{
|
||||||
if (std::strcmp(folder, "userraw") != 0)
|
if (std::strcmp(folder, "userraw") != 0)
|
||||||
{
|
{
|
||||||
|
@ -111,7 +111,7 @@ namespace Components
|
|||||||
static std::mutex MessageMutex;
|
static std::mutex MessageMutex;
|
||||||
static std::vector<std::string> MessageQueue;
|
static std::vector<std::string> MessageQueue;
|
||||||
|
|
||||||
static std::mutex LoggingMutex;
|
static std::recursive_mutex LoggingMutex;
|
||||||
static std::vector<Network::Address> LoggingAddresses[2];
|
static std::vector<Network::Address> LoggingAddresses[2];
|
||||||
|
|
||||||
static Dvar::Var IW4x_oneLog;
|
static Dvar::Var IW4x_oneLog;
|
||||||
|
Loading…
Reference in New Issue
Block a user