From 2380361d162b4060a255e1eef60ebf54519ecf6b Mon Sep 17 00:00:00 2001 From: Luke Street Date: Mon, 13 Jun 2022 01:46:01 -0400 Subject: [PATCH] Workaround logvisor path issue --- Runtime/CMain.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Runtime/CMain.cpp b/Runtime/CMain.cpp index b2010ea2e..5beff59c5 100644 --- a/Runtime/CMain.cpp +++ b/Runtime/CMain.cpp @@ -551,6 +551,9 @@ int main(int argc, char** argv) { args.emplace_back(argv[i]); } + // FIXME: logvisor needs to copy this + std::string logFilePath; + bool restart = false; do { metaforce::CVarManager cvarMgr{fileMgr}; @@ -572,7 +575,6 @@ int main(int argc, char** argv) { } std::string logFile = cvarCmns.getLogFile(); - std::string logFilePath; if (!logFile.empty()) { std::time_t time = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now()); char buf[100];