Hide console on Release configuration. (#244)

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

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;