Run clangformat everywhere
This commit is contained in:
@@ -4,10 +4,10 @@
|
||||
#include <execution>
|
||||
|
||||
namespace n64 {
|
||||
void GameDB::match(Mem& mem) {
|
||||
ROM& rom = mem.rom;
|
||||
void GameDB::match(Mem &mem) {
|
||||
ROM &rom = mem.rom;
|
||||
bool found = false;
|
||||
std::for_each(std::execution::par, std::begin(gamedb), std::end(gamedb), [&](const auto& i) {
|
||||
std::for_each(std::execution::par, std::begin(gamedb), std::end(gamedb), [&](const auto &i) {
|
||||
bool matches_code = i.code == rom.code;
|
||||
bool matches_region = false;
|
||||
|
||||
@@ -24,8 +24,9 @@ void GameDB::match(Mem& mem) {
|
||||
mem.rom.gameNameDB = i.name;
|
||||
return;
|
||||
} else {
|
||||
Util::warn("Matched code for {}, but not region! Game supposedly exists in regions [{}] but this image has region {}",
|
||||
i.name, i.regions, rom.header.countryCode[0]);
|
||||
Util::warn(
|
||||
"Matched code for {}, but not region! Game supposedly exists in regions [{}] but this image has region {}",
|
||||
i.name, i.regions, rom.header.countryCode[0]);
|
||||
mem.saveType = i.saveType;
|
||||
mem.rom.gameNameDB = i.name;
|
||||
return;
|
||||
@@ -33,11 +34,11 @@ void GameDB::match(Mem& mem) {
|
||||
}
|
||||
});
|
||||
|
||||
if(!found) {
|
||||
if (!found) {
|
||||
Util::debug("Did not match any Game DB entries. Code: {} Region: {}", mem.rom.code, mem.rom.header.countryCode[0]);
|
||||
|
||||
mem.rom.gameNameDB = "";
|
||||
mem.saveType = SAVE_NONE;
|
||||
}
|
||||
}
|
||||
}
|
||||
} // namespace n64
|
||||
|
||||
Reference in New Issue
Block a user