yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

android: Ensure keys are loaded before populating games list

This commit is contained in:
Charles Lombardo 2023-05-29 01:44:19 -04:00 committed by bunnei
parent 897b748895
commit 09747ca2d3
1 changed files with 3 additions and 0 deletions

View File

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