diff options
author | Charles Lombardo <clombardo169@gmail.com> | 2023-11-03 20:52:01 +0100 |
---|---|---|
committer | Charles Lombardo <clombardo169@gmail.com> | 2023-11-03 20:52:01 +0100 |
commit | 0a83047368b2e0e72535c0239db806d6c229d7e9 (patch) | |
tree | 4e1710135a3b2b3d128db591a6ce7e91556582be /src/android/app | |
parent | android: Fix fetching system memory size from MemoryUtil (diff) | |
download | yuzu-0a83047368b2e0e72535c0239db806d6c229d7e9.tar yuzu-0a83047368b2e0e72535c0239db806d6c229d7e9.tar.gz yuzu-0a83047368b2e0e72535c0239db806d6c229d7e9.tar.bz2 yuzu-0a83047368b2e0e72535c0239db806d6c229d7e9.tar.lz yuzu-0a83047368b2e0e72535c0239db806d6c229d7e9.tar.xz yuzu-0a83047368b2e0e72535c0239db806d6c229d7e9.tar.zst yuzu-0a83047368b2e0e72535c0239db806d6c229d7e9.zip |
Diffstat (limited to 'src/android/app')
-rw-r--r-- | src/android/app/src/main/java/org/yuzu/yuzu_emu/YuzuApplication.kt | 2 | ||||
-rw-r--r-- | src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/Log.kt | 12 |
2 files changed, 14 insertions, 0 deletions
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.kt index 8c053670c..d114bd53d 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.File import org.yuzu.yuzu_emu.utils.DirectoryInitialization import org.yuzu.yuzu_emu.utils.DocumentsTree import org.yuzu.yuzu_emu.utils.GpuDriverHelper +import org.yuzu.yuzu_emu.utils.Log fun 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.kt index fb682c344..aebe84b0f 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 log var 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()}") + } } |