From bc0ebfc106de3555bdf7b1d8314ccca6e7b0b502 Mon Sep 17 00:00:00 2001 From: Exzap <13877693+Exzap@users.noreply.github.com> Date: Fri, 9 Jan 2026 02:15:01 +0100 Subject: [PATCH] rpl: Fix sysapp name + fix logging order --- src/Cafe/CafeSystem.cpp | 6 +++--- src/Cafe/OS/libs/sysapp/sysapp.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Cafe/CafeSystem.cpp b/src/Cafe/CafeSystem.cpp index a5c00f82..d31a4a88 100644 --- a/src/Cafe/CafeSystem.cpp +++ b/src/Cafe/CafeSystem.cpp @@ -201,7 +201,6 @@ fs::path getTitleSavePath() void InfoLog_TitleLoaded() { - cemuLog_createLogFile(false); uint64 titleId = CafeSystem::GetForegroundTitleId(); cemuLog_log(LogType::Force, "------- Loaded title -------"); cemuLog_log(LogType::Force, "TitleId: {:08x}-{:08x}", (uint32)(titleId >> 32), (uint32)(titleId & 0xFFFFFFFF)); @@ -367,10 +366,9 @@ uint32 LoadSharedData() void cemu_initForGame() { WindowSystem::UpdateWindowTitles(false, true, 0.0); + cemuLog_createLogFile(false); // input manager apply game profile InputManager::instance().apply_game_profile(); - // log info for launched title - InfoLog_TitleLoaded(); // determine cycle offset since 1.1.2000 uint64 secondsSince2000_UTC = (uint64)(time(NULL) - 946684800); ppcCyclesSince2000_UTC = secondsSince2000_UTC * (uint64)ESPRESSO_CORE_CLOCK; @@ -389,6 +387,8 @@ void cemu_initForGame() // coreinit is bootstrapped first and then the main game executable is loaded RPLLoader_LoadCoreinit(); LoadMainExecutable(); + // log info for launched title + InfoLog_TitleLoaded(); // link all modules uint32 linkTimeStart = GetTickCount(); RPLLoader_UpdateDependencies(); diff --git a/src/Cafe/OS/libs/sysapp/sysapp.cpp b/src/Cafe/OS/libs/sysapp/sysapp.cpp index a78606d1..cfeeb5b4 100644 --- a/src/Cafe/OS/libs/sysapp/sysapp.cpp +++ b/src/Cafe/OS/libs/sysapp/sysapp.cpp @@ -677,7 +677,7 @@ namespace sysapp public: std::string_view GetName() override { - return "nsysapp"; + return "sysapp"; } void RPLMapped() override