Logging improvements

This commit is contained in:
Henrik Rydgård committed 2025-08-31 00:59:51 +02:00
1 parent f83b9c511d
commit b813a6c30f
5 files changed
+50 -28

No files matched your search

+5 -4
View File
@@ -953,7 +953,7 @@ bool CreateGlobalPipelines() {
}
void NativeShutdownGraphics() {
INFO_LOG(Log::System, "NativeShutdownGraphics");
INFO_LOG(Log::System, "NativeShutdownGraphics begin");
if (g_screenManager) {
g_screenManager->deviceLost();
@@ -1001,7 +1001,7 @@ void NativeShutdownGraphics() {
texColorPipeline = nullptr;
}
INFO_LOG(Log::System, "NativeShutdownGraphics done");
INFO_LOG(Log::System, "NativeShutdownGraphics end");
}
static void TakeScreenshot(Draw::DrawContext *draw) {
@@ -1536,6 +1536,8 @@ bool NativeIsRestarting() {
}
void NativeShutdown() {
INFO_LOG(Log::System, "NativeShutdown begin");
Achievements::Shutdown();
if (g_Config.bAchievementsEnable) {
@@ -1554,8 +1556,6 @@ void NativeShutdown() {
g_Config.Save("NativeShutdown");
INFO_LOG(Log::System, "NativeShutdown called");
g_i18nrepo.LogMissingKeys();
ShutdownWebServer();
@@ -1587,6 +1587,7 @@ void NativeShutdown() {
// Previously we did exit() here on Android but that makes it hard to do things like restart on backend change.
// I think we handle most globals correctly or correct-enough now.
INFO_LOG(Log::System, "NativeShutdown end");
}
// In the future, we might make this more sophisticated, such as storing in the app private directory on Android.