Navigation Menu

Skip to content

Commit

Permalink
Name homebrew games ini files differently
Browse files Browse the repository at this point in the history
  • Loading branch information
LunaMoo committed Jun 20, 2016
1 parent 6c14b82 commit 27a616c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions UI/CwCheatScreen.cpp
Expand Up @@ -53,6 +53,19 @@ void CwCheatScreen::CreateCodeList() {
if (info && info->paramSFOLoaded) {
gameTitle = info->paramSFO.GetValueString("DISC_ID");
}
std::size_t lslash = gamePath_.find_last_of("/");
std::size_t lastdot = gamePath_.find_last_of(".");
std::string extension = gamePath_.substr(lastdot + 1);
for (int i = 0; i < extension.size(); i++) {
extension[i] = tolower(extension[i]);
}
if (extension != "iso" && extension != "cso" && extension != "pbp" || gameTitle == "") {
if (extension == "elf") {
gameTitle = "ELF000000";
} else {
gameTitle = gamePath_.substr(lslash + 1);
}
}
cheatEngine2 = new CWCheatEngine();
cheatEngine2->CreateCheatFile();
cheatList = cheatEngine2->GetCodesList(activeCheatFile);
Expand Down

0 comments on commit 27a616c

Please sign in to comment.