From f016eca84469f5ef0b7683dfa48dd6c9e7cf848a Mon Sep 17 00:00:00 2001 From: "Jake.Stine" Date: Mon, 26 Oct 2009 08:57:30 +0000 Subject: [PATCH] * PCSX2 paths save to ini correctly now (sometimes they'd save as blanks). * Added some comments for the Dialogs::ExtensibleConfirmation class. * Removed a redundant call to PADupdate in the MTGS (not needed anymore in the single-PAD plugin design added in pcsx2wx) git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2083 96395faa-99c1-11dd-bbfe-3dabce05a288 --- pcsx2/MTGS.cpp | 3 --- pcsx2/gui/AppConfig.cpp | 17 ++++++++++++++++- pcsx2/gui/AppConfig.h | 1 + pcsx2/gui/Dialogs/ModalPopups.h | 14 ++++++++++++++ pcsx2/gui/IniInterface.cpp | 4 ++-- 5 files changed, 33 insertions(+), 6 deletions(-) diff --git a/pcsx2/MTGS.cpp b/pcsx2/MTGS.cpp index e1480697d6..523f78268b 100644 --- a/pcsx2/MTGS.cpp +++ b/pcsx2/MTGS.cpp @@ -325,10 +325,7 @@ void mtgsThreadObject::ExecuteTaskInThread() //Console.Status( " << Frame Removed!" ); if( PADupdate != NULL ) - { PADupdate(0); - PADupdate(1); - } } break; diff --git a/pcsx2/gui/AppConfig.cpp b/pcsx2/gui/AppConfig.cpp index cb2343a820..3301aff388 100644 --- a/pcsx2/gui/AppConfig.cpp +++ b/pcsx2/gui/AppConfig.cpp @@ -159,7 +159,7 @@ namespace PathDefs } }; -const wxDirName& AppConfig::FolderOptions::operator[]( FoldersEnum_t folderidx ) const +wxDirName& AppConfig::FolderOptions::operator[]( FoldersEnum_t folderidx ) { switch( folderidx ) { @@ -176,6 +176,11 @@ const wxDirName& AppConfig::FolderOptions::operator[]( FoldersEnum_t folderidx ) return Plugins; // unreachable, but suppresses warnings. } +const wxDirName& AppConfig::FolderOptions::operator[]( FoldersEnum_t folderidx ) const +{ + return const_cast( this )->operator[]( folderidx ); +} + const bool AppConfig::FolderOptions::IsDefault( FoldersEnum_t folderidx ) const { switch( folderidx ) @@ -463,7 +468,9 @@ void AppConfig::FolderOptions::LoadSave( IniInterface& ini ) IniScopedGroup path( ini, L"Folders" ); if( ini.IsSaving() ) + { ApplyDefaults(); + } IniBitBool( UseDefaultPlugins ); IniBitBool( UseDefaultSettings ); @@ -483,7 +490,15 @@ void AppConfig::FolderOptions::LoadSave( IniInterface& ini ) IniEntry( RunIso ); if( ini.IsLoading() ) + { ApplyDefaults(); + + if( !UseAdminMode ) + { + for( int i=0; i