From 09747ca2d319235aaf8b589244f1ea87aa89d5fe Mon Sep 17 00:00:00 2001 From: Charles Lombardo Date: Mon, 29 May 2023 01:44:19 -0400 Subject: android: Ensure keys are loaded before populating games list --- .../app/src/main/java/org/yuzu/yuzu_emu/model/GamesViewModel.kt | 3 +++ 1 file changed, 3 insertions(+) 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 d4de7a09a..7059856f1 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 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()) -- cgit v1.2.3