Browse Source

android: Ensure keys are loaded before populating games list

nce_cpp
Charles Lombardo 3 years ago
committed by bunnei
parent
commit
ecdbaecea2
  1. 3
      src/android/app/src/main/java/org/yuzu/yuzu_emu/model/GamesViewModel.kt

3
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())

Loading…
Cancel
Save