aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Lombardo <clombardo169@gmail.com>2023-05-29 01:44:19 -0400
committerbunnei <bunneidev@gmail.com>2023-06-03 00:06:05 -0700
commitecdbaecea2b37d42ea1d2c0ceff60cf1d34b291e (patch)
tree6fbf8d3c29f977575052aa2437106044bcc47d4b
parentaadc63e1b5de1e9e9ecc71e2d8ff04e06c39437c (diff)
android: Ensure keys are loaded before populating games list
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/model/GamesViewModel.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/GamesViewModel.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/GamesViewModel.kt
index d4de7a09a6..7059856f13 100644
--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/GamesViewModel.kt
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/GamesViewModel.kt
@@ -40,6 +40,9 @@ class GamesViewModel : ViewModel() {
val searchFocused: LiveData<Boolean> get() = _searchFocused
init {
+ // Ensure keys are loaded so that ROM metadata can be decrypted.
+ NativeLibrary.reloadKeys()
+
// Retrieve list of cached games
val storedGames = PreferenceManager.getDefaultSharedPreferences(YuzuApplication.appContext)
.getStringSet(GameHelper.KEY_GAMES, emptySet())