VERY experimental Nintendo Switch 2 emulator
C++
android: Log more system information during startup
Charles Lombardoff12abbd815b
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/YuzuApplication.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/YuzuApplication.ktindex 8c053670c6..d114bd53d7 100644--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/YuzuApplication.kt+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/YuzuApplication.kt@@ -11,6 +11,7 @@ import java.io.Fileimport org.yuzu.yuzu_emu.utils.DirectoryInitializationimport org.yuzu.yuzu_emu.utils.DocumentsTreeimport org.yuzu.yuzu_emu.utils.GpuDriverHelper+import org.yuzu.yuzu_emu.utils.Logfun Context.getPublicFilesDir(): File = getExternalFilesDir(null) ?: filesDir@@ -49,6 +50,7 @@ class YuzuApplication : Application() {DirectoryInitialization.start()GpuDriverHelper.initializeDriverParameters()NativeLibrary.logDeviceInfo()+ Log.logDeviceInfo()createNotificationChannels()}diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/Log.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/Log.ktindex fb682c3446..aebe84b0f1 100644--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/Log.kt+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/Log.kt@@ -3,6 +3,8 @@package org.yuzu.yuzu_emu.utils+import android.os.Build+object Log {// Tracks whether we should share the old log or the current logvar gameLaunched = false@@ -16,4 +18,14 @@ object Log {external fun error(message: String)external fun critical(message: String)++ fun logDeviceInfo() {+ info("Device Manufacturer - ${Build.MANUFACTURER}")+ info("Device Model - ${Build.MODEL}")+ if (Build.VERSION.SDK_INT > Build.VERSION_CODES.R) {+ info("SoC Manufacturer - ${Build.SOC_MANUFACTURER}")+ info("SoC Model - ${Build.SOC_MODEL}")+ }+ info("Total System Memory - ${MemoryUtil.getDeviceRAM()}")+ }}