summaryrefslogtreecommitdiff
path: root/src/port/GameExtractor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/port/GameExtractor.cpp')
-rw-r--r--src/port/GameExtractor.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/port/GameExtractor.cpp b/src/port/GameExtractor.cpp
index 0182241be..669175f27 100644
--- a/src/port/GameExtractor.cpp
+++ b/src/port/GameExtractor.cpp
@@ -29,7 +29,7 @@ bool GameExtractor::SelectGameFromUI() {
#endif
std::ifstream file(this->mGamePath, std::ios::binary);
- this->mGameData = std::vector<uint8_t>( std::istreambuf_iterator( file ), {} );
+ this->mGameData = std::vector<uint8_t>(std::istreambuf_iterator(file), {});
file.close();
return true;
}
@@ -38,7 +38,7 @@ std::optional<std::string> GameExtractor::ValidateChecksum() const {
const auto rom = new N64::Cartridge(this->mGameData);
rom->Initialize();
auto hash = rom->GetHash();
-
+
if (mGameList.find(hash) == mGameList.end()) {
return std::nullopt;
}
@@ -51,9 +51,7 @@ bool GameExtractor::GenerateOTR() const {
try {
Companion::Instance->Init(ExportType::Binary);
- } catch (const std::exception& e) {
- return false;
- }
+ } catch (const std::exception& e) { return false; }
return true;
}