Skip to content

Commit

Permalink
Fix wrong conditional logic starting the emulator without any ROMs
Browse files Browse the repository at this point in the history
  • Loading branch information
dariusarnold committed Apr 1, 2023
1 parent 539cfb3 commit e633363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ int main(int argc, char** argv) { // NOLINT
emulator.load_boot_game(boot_rom_path.value(), game_rom_path.value());
} else if (game_rom_path.has_value()) {
emulator.load_game(game_rom_path.value());
} else {
} else if (boot_rom_path.has_value()) {
// This means only a boot rom without a game was given
spdlog::error("Running boot rom without a game rom not supported.");
std::exit(1);
Expand Down

0 comments on commit e633363

Please sign in to comment.