Hide console on Release configuration. (#244)

This commit is contained in:
Skyth (Asilkan) authored and GitHub committed 2025-01-30 19:16:21 +03:00
1 parent c78c2010a3
commit 9fea5f9e4c
7 files changed
+31 -1

No files matched your search

+4
View File
@@ -6,6 +6,7 @@
#include <kernel/function.h>
#include <kernel/heap.h>
#include <user/paths.h>
#include <os/process.h>
#include <xxHashMap.h>
enum class ModType
@@ -115,6 +116,9 @@ void ModLoader::Init()
ModLoader::s_saveFilePath /= "SYS-DATA";
}
if (configIni.getString("CPKREDIR", "LogType", std::string()) == "console")
os::process::ShowConsole();
std::string modsDbIniFilePathU8 = configIni.getString("CPKREDIR", "ModsDbIni", "");
if (modsDbIniFilePathU8.empty())
return;