mirror of https://github.com/PCSX2/pcsx2.git
pcsx2 gui:
* Fix log folder path selection. * half fix the plugin folder path selection. Ie the use default selection. However the register setting must be saved after the path updates. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4391 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
1d25812100
commit
7e62a13131
|
@ -376,7 +376,7 @@ bool AppConfig::FullpathMatchTest( PluginsEnum_t pluginId, const wxString& cmpto
|
|||
|
||||
wxDirName GetLogFolder()
|
||||
{
|
||||
return UseDefaultLogFolder ? PathDefs::GetLogs() : LogFolder;
|
||||
return g_Conf->Folders.IsDefault( FolderId_Logs ) ? PathDefs::Get(FolderId_Logs) : g_Conf->Folders[FolderId_Logs];
|
||||
}
|
||||
|
||||
wxDirName GetSettingsFolder()
|
||||
|
@ -588,12 +588,13 @@ void AppConfig::ConsoleLogOptions::LoadSave( IniInterface& ini, const wxChar* lo
|
|||
|
||||
void AppConfig::FolderOptions::ApplyDefaults()
|
||||
{
|
||||
if( UseDefaultBios ) Bios = PathDefs::GetBios();
|
||||
if( UseDefaultSnapshots ) Snapshots = PathDefs::GetSnapshots();
|
||||
if( UseDefaultSavestates ) Savestates = PathDefs::GetSavestates();
|
||||
if( UseDefaultMemoryCards ) MemoryCards = PathDefs::GetMemoryCards();
|
||||
if( UseDefaultLogs ) Logs = PathDefs::GetLogs();
|
||||
if( UseDefaultLangs ) Langs = PathDefs::GetLangs();
|
||||
if( UseDefaultBios ) Bios = PathDefs::GetBios();
|
||||
if( UseDefaultSnapshots ) Snapshots = PathDefs::GetSnapshots();
|
||||
if( UseDefaultSavestates ) Savestates = PathDefs::GetSavestates();
|
||||
if( UseDefaultMemoryCards ) MemoryCards = PathDefs::GetMemoryCards();
|
||||
if( UseDefaultLogs ) Logs = PathDefs::GetLogs();
|
||||
if( UseDefaultLangs ) Langs = PathDefs::GetLangs();
|
||||
if( UseDefaultPluginsFolder)PluginsFolder = PathDefs::GetPlugins();
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
|
@ -626,6 +627,7 @@ void AppConfig::FolderOptions::LoadSave( IniInterface& ini )
|
|||
IniBitBool( UseDefaultMemoryCards );
|
||||
IniBitBool( UseDefaultLogs );
|
||||
IniBitBool( UseDefaultLangs );
|
||||
IniBitBool( UseDefaultPluginsFolder );
|
||||
|
||||
IniEntry( Bios );
|
||||
IniEntry( Snapshots );
|
||||
|
|
|
@ -50,13 +50,11 @@ namespace PathDefs
|
|||
|
||||
extern DocsModeType DocsFolderMode; //
|
||||
extern bool UseDefaultSettingsFolder; // when TRUE, pcsx2 derives the settings folder from the DocsFolderMode
|
||||
extern bool UseDefaultLogFolder;
|
||||
extern bool UseDefaultPluginsFolder;
|
||||
extern bool UseDefaultThemesFolder;
|
||||
|
||||
extern wxDirName CustomDocumentsFolder; // allows the specification of a custom home folder for PCSX2 documents files.
|
||||
extern wxDirName SettingsFolder; // dictates where the settings folder comes from, *if* UseDefaultSettingsFolder is FALSE.
|
||||
extern wxDirName LogFolder;
|
||||
|
||||
extern wxDirName InstallFolder;
|
||||
extern wxDirName PluginsFolder;
|
||||
|
|
|
@ -27,14 +27,12 @@
|
|||
|
||||
DocsModeType DocsFolderMode = DocsFolder_User;
|
||||
bool UseDefaultSettingsFolder = true;
|
||||
bool UseDefaultLogFolder = true;
|
||||
bool UseDefaultPluginsFolder = true;
|
||||
bool UseDefaultThemesFolder = true;
|
||||
|
||||
|
||||
wxDirName CustomDocumentsFolder;
|
||||
wxDirName SettingsFolder;
|
||||
wxDirName LogFolder;
|
||||
|
||||
wxDirName InstallFolder;
|
||||
wxDirName PluginsFolder;
|
||||
|
|
Loading…
Reference in New Issue