VERY experimental Nintendo Switch 2 emulator
C++
android: Ensure keys are loaded before populating games list
Charles Lombardoecdbaecea2b3
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.ktindex 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() = _searchFocusedinit {+ // Ensure keys are loaded so that ROM metadata can be decrypted.+ NativeLibrary.reloadKeys()+// Retrieve list of cached gamesval storedGames = PreferenceManager.getDefaultSharedPreferences(YuzuApplication.appContext).getStringSet(GameHelper.KEY_GAMES, emptySet())