void __UtilityDoState(PointerWrap &p) { auto s = p.Section("sceUtility", 1, 2); if (!s) { return; } p.Do(currentDialogType); p.Do(currentDialogActive); saveDialog.DoState(p); msgDialog.DoState(p); oskDialog.DoState(p); netDialog.DoState(p); screenshotDialog.DoState(p); gamedataInstallDialog.DoState(p); if (s >= 2) { p.Do(currentlyLoadedModules); } else { std::set<int> oldModules; p.Do(oldModules); for (auto it = oldModules.begin(), end = oldModules.end(); it != end; ++it) { currentlyLoadedModules[*it] = 0; } } }
void __UtilityDoState(PointerWrap &p) { auto s = p.Section("sceUtility", 1); if (!s) return; p.Do(currentDialogType); p.Do(currentDialogActive); saveDialog.DoState(p); msgDialog.DoState(p); oskDialog.DoState(p); netDialog.DoState(p); screenshotDialog.DoState(p); gamedataInstallDialog.DoState(p); p.Do(currentlyLoadedModules); }