mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 13:36:24 +02:00
Config: Specify/save game title on load too.
Needed when we load and then save, of course.
This commit is contained in:
1 parent
0b4f60272c
commit
5e2b4d9f1d
5 files changed
+11
-7
No files matched your search
+3
-3
@@ -1189,7 +1189,7 @@ void Config::Load(const char *iniFileName, const char *controllerIniFilename) {
|
||||
//sadly it won't benefit from all the "version conversion" going on up-above
|
||||
//but these configs shouldn't contain older versions anyhow
|
||||
if (bGameSpecific) {
|
||||
loadGameConfig(gameId_);
|
||||
loadGameConfig(gameId_, gameIdTitle_);
|
||||
}
|
||||
|
||||
CleanRecent();
|
||||
@@ -1508,7 +1508,7 @@ bool Config::saveGameConfig(const std::string &pGameId, const std::string &title
|
||||
return true;
|
||||
}
|
||||
|
||||
bool Config::loadGameConfig(const std::string &pGameId) {
|
||||
bool Config::loadGameConfig(const std::string &pGameId, const std::string &title) {
|
||||
std::string iniFileNameFull = getGameConfigFile(pGameId);
|
||||
|
||||
if (!hasGameConfig(pGameId)) {
|
||||
@@ -1516,7 +1516,7 @@ bool Config::loadGameConfig(const std::string &pGameId) {
|
||||
return false;
|
||||
}
|
||||
|
||||
changeGameSpecific(pGameId);
|
||||
changeGameSpecific(pGameId, title);
|
||||
IniFile iniFile;
|
||||
iniFile.Load(iniFileNameFull);
|
||||
|
||||
|
||||
Reference in new issue
Block a user