Add brackets to cheat names

This commit is contained in:
BernardoGiordano 2019-07-06 07:55:31 +02:00
parent 36ac0449d8
commit 2a79912001

View file

@ -85,7 +85,7 @@ void CheatManager::save(const std::string& key, const std::vector<std::string>&
if (cellName.compare(0, MAGIC_LEN, SELECTED_MAGIC) == 0) { if (cellName.compare(0, MAGIC_LEN, SELECTED_MAGIC) == 0) {
cellName = cellName.substr(strlen(SELECTED_MAGIC), cellName.length()); cellName = cellName.substr(strlen(SELECTED_MAGIC), cellName.length());
if (cheats[key][buildid].find(cellName) != cheats[key][buildid].end()) { if (cheats[key][buildid].find(cellName) != cheats[key][buildid].end()) {
cheatFile += cellName + "\n"; cheatFile += "[" + cellName + "]\n";
for (auto& it2 : cheats[key][buildid][cellName]) { for (auto& it2 : cheats[key][buildid][cellName]) {
cheatFile += it2.get<std::string>() + "\n"; cheatFile += it2.get<std::string>() + "\n";
} }