diff options
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()) |