mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 00:59:44 -06:00
sys menu now loads gamesettings from an ini file (as well as any other wad/nand title that does not have an ascii gamecode)
fixes system menu loading the ini file from the last run game also check for all countries when setting bntsc for wad/nand titles git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6590 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -110,7 +110,18 @@ CISOProperties::CISOProperties(const std::string fileName, wxWindow* parent, wxW
|
||||
|
||||
CreateGUIControls(DiscIO::IsVolumeWadFile(OpenISO));
|
||||
|
||||
GameIniFile = std::string(File::GetUserPath(D_GAMECONFIG_IDX)) + (OpenISO->GetUniqueID()) + ".ini";
|
||||
std::string _iniFilename = OpenISO->GetUniqueID();
|
||||
if (!_iniFilename.length())
|
||||
{
|
||||
char tmp[17];
|
||||
u8 _tTitleID[8];
|
||||
if(OpenISO->GetTitleID(_tTitleID))
|
||||
{
|
||||
snprintf(tmp, 17, "%016llx", Common::swap64(_tTitleID));
|
||||
_iniFilename = tmp;
|
||||
}
|
||||
}
|
||||
GameIniFile = std::string(File::GetUserPath(D_GAMECONFIG_IDX)) + _iniFilename + ".ini";
|
||||
if (GameIni.Load(GameIniFile.c_str()))
|
||||
LoadGameConfig();
|
||||
else
|
||||
|
Reference in New Issue
Block a user