Run clangformat everywhere

This commit is contained in:
SimoneN64
2024-08-27 21:35:07 +02:00
parent b3a4a302cb
commit e253627890
74 changed files with 5536 additions and 4358 deletions

View File

@@ -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