summaryrefslogtreecommitdiffstats
path: root/src/android/app
diff options
context:
space:
mode:
authorCharles Lombardo <clombardo169@gmail.com>2023-05-29 07:44:19 +0200
committerbunnei <bunneidev@gmail.com>2023-06-03 09:06:05 +0200
commit09747ca2d319235aaf8b589244f1ea87aa89d5fe (patch)
tree6fbf8d3c29f977575052aa2437106044bcc47d4b /src/android/app
parentandroid: Use dialog fragment for the reset settings dialog (diff)
downloadyuzu-09747ca2d319235aaf8b589244f1ea87aa89d5fe.tar
yuzu-09747ca2d319235aaf8b589244f1ea87aa89d5fe.tar.gz
yuzu-09747ca2d319235aaf8b589244f1ea87aa89d5fe.tar.bz2
yuzu-09747ca2d319235aaf8b589244f1ea87aa89d5fe.tar.lz
yuzu-09747ca2d319235aaf8b589244f1ea87aa89d5fe.tar.xz
yuzu-09747ca2d319235aaf8b589244f1ea87aa89d5fe.tar.zst
yuzu-09747ca2d319235aaf8b589244f1ea87aa89d5fe.zip
Diffstat (limited to 'src/android/app')
-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 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<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())