WX: Make texture dump location configurable

This commit is contained in:
TellowKrinkle 2022-03-01 15:54:42 -06:00 committed by refractionpcsx2
parent 75bc680934
commit 7a628f1a12
2 changed files with 12 additions and 2 deletions

View File

@ -536,8 +536,8 @@ void AppConfig::FolderOptions::Set(FoldersEnum_t folderidx, const wxString& src,
break;
case FolderId_Textures:
Cache = src;
UseDefaultCache = useDefault;
Textures = src;
UseDefaultTextures = useDefault;
EmuFolders::Textures = GetResolvedFolder(FolderId_Textures);
EmuFolders::Textures.Mkdir();
break;
@ -775,6 +775,7 @@ void AppConfig::FolderOptions::LoadSave(IniInterface& ini)
IniBitBool(UseDefaultLangs);
IniBitBool(UseDefaultCheats);
IniBitBool(UseDefaultCheatsWS);
IniBitBool(UseDefaultTextures);
//when saving in portable mode, we save relative paths if possible
// --> on load, these relative paths will be expanded relative to the exe folder.
@ -789,6 +790,7 @@ void AppConfig::FolderOptions::LoadSave(IniInterface& ini)
IniEntryDirFile(Cheats, rel);
IniEntryDirFile(CheatsWS, rel);
IniEntryDirFile(Cache, rel);
IniEntryDirFile(Textures, rel);
IniEntryDirFile(RunIso, rel);
IniEntryDirFile(RunELF, rel);

View File

@ -60,6 +60,14 @@ Panels::StandardPathsPanel::StandardPathsPanel( wxWindow* parent )
)
) | SubGroup();
*this += BetweenFolderSpace;
*this += (new DirPickerPanel( this, FolderId_Textures,
_("Textures:"),
_("Select a folder for textures") ))->
SetToolTip( pxEt( L"This folder is where PCSX2 saves texture dumps and replacements."
)
) | SubGroup();
/*
*this += BetweenFolderSpace;
*this += (new DirPickerPanel( this, FolderId_MemoryCards,