Browse Source

[qt_common] Avoid FS factory refresh while powered

Skip FileSystemController factory recreation during game-list repopulation while emulation is powered on.

This avoids poking live FS/VFS state during homebrew self-update and in-place NextLoad flows.
xbzk/hb-tico-support-part-2
xbzk 3 months ago
parent
commit
53a98f9de1
  1. 4
      src/qt_common/game_list/model.cpp

4
src/qt_common/game_list/model.cpp

@ -159,7 +159,9 @@ void GameListModel::RemoveFavorite(u64 program_id) {
void GameListModel::Repopulate() { void GameListModel::Repopulate() {
current_worker.reset(); current_worker.reset();
QtCommon::system->GetFileSystemController().CreateFactories(*QtCommon::vfs);
if (!QtCommon::system->IsPoweredOn()) {
QtCommon::system->GetFileSystemController().CreateFactories(*QtCommon::vfs);
}
PopulateAsync(UISettings::values.game_dirs); PopulateAsync(UISettings::values.game_dirs);
} }

Loading…
Cancel
Save