void AppConfig::LoadSaveRootItems( IniInterface& ini ) { IniEntry( MainGuiPosition ); IniEntry( SysSettingsTabName ); IniEntry( McdSettingsTabName ); IniEntry( ComponentsTabName ); IniEntry( AppSettingsTabName ); IniEntry( GameDatabaseTabName ); ini.EnumEntry( L"LanguageId", LanguageId, NULL, LanguageId ); IniEntry( LanguageCode ); IniEntry( RecentIsoCount ); IniEntry( GzipIsoIndexTemplate ); IniEntry( DeskTheme ); IniEntry( Listbook_ImageSize ); IniEntry( Toolbar_ImageSize ); IniEntry( Toolbar_ShowLabels ); wxFileName res(CurrentIso); ini.Entry( L"CurrentIso", res, res, ini.IsLoading() || IsPortable() ); CurrentIso = res.GetFullPath(); IniEntry( CurrentELF ); IniEntry( EnableSpeedHacks ); IniEntry( EnableGameFixes ); IniEntry( EnablePresets ); IniEntry( PresetIndex ); #ifdef __WXMSW__ IniEntry( McdCompressNTFS ); #endif ini.EnumEntry( L"CdvdSource", CdvdSource, CDVD_SourceLabels, CdvdSource ); }
void AppConfig::GSWindowOptions::LoadSave( IniInterface& ini ) { ScopedIniGroup path( ini, L"GSWindow" ); IniEntry( CloseOnEsc ); IniEntry( DefaultToFullscreen ); IniEntry( AlwaysHideMouse ); IniEntry( DisableResizeBorders ); IniEntry( DisableScreenSaver ); IniEntry( WindowSize ); IniEntry( WindowPos ); IniEntry( IsMaximized ); IniEntry( IsFullscreen ); IniEntry( IsToggleFullscreenOnDoubleClick ); static const wxChar* AspectRatioNames[] = { L"Stretch", L"4:3", L"16:9", // WARNING: array must be NULL terminated to compute it size NULL }; ini.EnumEntry( L"AspectRatio", AspectRatio, AspectRatioNames, AspectRatio ); IniEntry( Zoom ); if( ini.IsLoading() ) SanityCheck(); }
// ------------------------------------------------------------------------ void App_LoadSaveInstallSettings( IniInterface& ini ) { // Portable installs of PCSX2 should not save any of the following information to // the INI file. Only the Run First Time Wizard option is saved, and that's done // from EstablishAppUserMode code. All other options have assumed (fixed) defaults in // portable mode which cannot be changed/saved. // Note: Settins are still *loaded* from portable.ini, in case the user wants to do // low-level overrides of the default behavior of portable mode installs. if (ini.IsSaving() && (InstallationMode == InstallMode_Portable)) return; static const wxChar* DocsFolderModeNames[] = { L"User", L"Custom", // WARNING: array must be NULL terminated to compute it size NULL }; ini.EnumEntry( L"DocumentsFolderMode", DocsFolderMode, DocsFolderModeNames, (InstallationMode == InstallMode_Registered) ? DocsFolder_User : DocsFolder_Custom); ini.Entry( L"CustomDocumentsFolder", CustomDocumentsFolder, PathDefs::AppRoot() ); ini.Entry( L"UseDefaultSettingsFolder", UseDefaultSettingsFolder, true ); ini.Entry( L"SettingsFolder", SettingsFolder, PathDefs::GetSettings() ); // "Install_Dir" conforms to the NSIS standard install directory key name. // Attempt to load plugins and themes based on the Install Folder. ini.Entry( L"Install_Dir", InstallFolder, (wxDirName)(wxFileName(wxStandardPaths::Get().GetExecutablePath()).GetPath()) ); SetFullBaseDir( InstallFolder ); //ini.Entry( L"PluginsFolder", PluginsFolder, InstallFolder + PathDefs::Base::Plugins() ); ini.Entry( L"ThemesFolder", ThemesFolder, InstallFolder + PathDefs::Base::Themes() ); ini.Flush(); }
void Pcsx2Config::GSOptions::LoadSave( IniInterface& ini ) { ScopedIniGroup path( ini, L"GS" ); IniEntry( SynchronousMTGS ); IniEntry( DisableOutput ); IniEntry( VsyncQueueSize ); IniEntry( FrameLimitEnable ); IniEntry( FrameSkipEnable ); IniEntry( VsyncEnable ); IniEntry( ManagedVsync ); IniEntry( LimitScalar ); IniEntry( FramerateNTSC ); IniEntry( FrameratePAL ); // WARNING: array must be NULL terminated to compute it size static const wxChar * const ntsc_pal_str[3] = { L"ntsc", L"pal", NULL }; ini.EnumEntry( L"DefaultRegionMode", DefaultRegionMode, ntsc_pal_str, DefaultRegionMode ); IniEntry( FramesToDraw ); IniEntry( FramesToSkip ); }