mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-22 14:52:45 +01:00
android: Ensure keys are loaded before populating games list
This commit is contained in:
parent
897b748895
commit
09747ca2d3
1 changed files with 3 additions and 0 deletions
|
@ -40,6 +40,9 @@ class GamesViewModel : ViewModel() {
|
||||||
val searchFocused: LiveData<Boolean> get() = _searchFocused
|
val searchFocused: LiveData<Boolean> get() = _searchFocused
|
||||||
|
|
||||||
init {
|
init {
|
||||||
|
// Ensure keys are loaded so that ROM metadata can be decrypted.
|
||||||
|
NativeLibrary.reloadKeys()
|
||||||
|
|
||||||
// Retrieve list of cached games
|
// Retrieve list of cached games
|
||||||
val storedGames = PreferenceManager.getDefaultSharedPreferences(YuzuApplication.appContext)
|
val storedGames = PreferenceManager.getDefaultSharedPreferences(YuzuApplication.appContext)
|
||||||
.getStringSet(GameHelper.KEY_GAMES, emptySet())
|
.getStringSet(GameHelper.KEY_GAMES, emptySet())
|
||||||
|
|
Loading…
Reference in a new issue