mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-17 03:24:19 +01:00
Fix cheats path and folder creation
For the install version on Linux, PCSX2 now searches for cheats in $HOME instead of /usr. For the install version on Windows, PCSX2 now searches for cheats in Documents/PCSX2 instead of the cheats directory where PCSX2 is installed. Also make a few small consistency changes.
This commit is contained in:
1 parent
60a90aa51c
commit
55eebb5fd2
2 files changed
+16
-2
No files matched your search
+15
-2
@@ -72,6 +72,18 @@ namespace PathDefs
|
||||
return retval;
|
||||
}
|
||||
|
||||
const wxDirName& Bios()
|
||||
{
|
||||
static const wxDirName retval(L"bios");
|
||||
return retval;
|
||||
}
|
||||
|
||||
const wxDirName& Cheats()
|
||||
{
|
||||
static const wxDirName retval(L"cheats");
|
||||
return retval;
|
||||
}
|
||||
|
||||
const wxDirName& CheatsWS()
|
||||
{
|
||||
static const wxDirName retval(L"cheats_ws");
|
||||
@@ -184,12 +196,12 @@ namespace PathDefs
|
||||
|
||||
wxDirName GetBios()
|
||||
{
|
||||
return GetDocuments() + wxDirName( L"bios" );
|
||||
return GetDocuments() + Base::Bios();;
|
||||
}
|
||||
|
||||
wxDirName GetCheats()
|
||||
{
|
||||
return AppRoot() + wxDirName( L"cheats" );
|
||||
return GetDocuments() + Base::Cheats();
|
||||
}
|
||||
|
||||
wxDirName GetCheatsWS()
|
||||
@@ -722,6 +734,7 @@ AppConfig::FolderOptions::FolderOptions()
|
||||
, MemoryCards ( PathDefs::GetMemoryCards() )
|
||||
, Langs ( PathDefs::GetLangs() )
|
||||
, Logs ( PathDefs::GetLogs() )
|
||||
, Cheats ( PathDefs::GetCheats() )
|
||||
, CheatsWS ( PathDefs::GetCheatsWS() )
|
||||
|
||||
, RunIso( PathDefs::GetDocuments() ) // raw default is always the Documents folder.
|
||||
|
||||
@@ -834,6 +834,7 @@ void AppApplySettings( const AppConfig* oldconf )
|
||||
g_Conf->Folders.MemoryCards.Mkdir();
|
||||
g_Conf->Folders.Savestates.Mkdir();
|
||||
g_Conf->Folders.Snapshots.Mkdir();
|
||||
g_Conf->Folders.Cheats.Mkdir();
|
||||
g_Conf->Folders.CheatsWS.Mkdir();
|
||||
|
||||
g_Conf->EmuOptions.BiosFilename = g_Conf->FullpathToBios();
|
||||
|
||||
Reference in new issue
Block a user