diff options
| author | 2023-05-29 01:44:19 -0400 | |
|---|---|---|
| committer | 2023-06-03 00:06:05 -0700 | |
| commit | 09747ca2d319235aaf8b589244f1ea87aa89d5fe (patch) | |
| tree | 6fbf8d3c29f977575052aa2437106044bcc47d4b /src/android | |
| parent | android: Use dialog fragment for the reset settings dialog (diff) | |
| download | yuzu-09747ca2d319235aaf8b589244f1ea87aa89d5fe.tar.gz yuzu-09747ca2d319235aaf8b589244f1ea87aa89d5fe.tar.xz yuzu-09747ca2d319235aaf8b589244f1ea87aa89d5fe.zip | |
android: Ensure keys are loaded before populating games list
Diffstat (limited to 'src/android')
| -rw-r--r-- | src/android/app/src/main/java/org/yuzu/yuzu_emu/model/GamesViewModel.kt | 3 |
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() { | |||
| 40 | val searchFocused: LiveData<Boolean> get() = _searchFocused | 40 | val searchFocused: LiveData<Boolean> get() = _searchFocused |
| 41 | 41 | ||
| 42 | init { | 42 | init { |
| 43 | // Ensure keys are loaded so that ROM metadata can be decrypted. | ||
| 44 | NativeLibrary.reloadKeys() | ||
| 45 | |||
| 43 | // Retrieve list of cached games | 46 | // Retrieve list of cached games |
| 44 | val storedGames = PreferenceManager.getDefaultSharedPreferences(YuzuApplication.appContext) | 47 | val storedGames = PreferenceManager.getDefaultSharedPreferences(YuzuApplication.appContext) |
| 45 | .getStringSet(GameHelper.KEY_GAMES, emptySet()) | 48 | .getStringSet(GameHelper.KEY_GAMES, emptySet()) |