Skip to content

Commit

Permalink
desktop-ui: surround sg1000a with CORE_SG ifdef
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeUsher committed Oct 25, 2023
1 parent 414c205 commit a47bbea
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions desktop-ui/emulator/arcade.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ auto Arcade::load() -> bool {
if(!system->load()) return false;

//Determine from the game manifest which core to use for the given arcade rom
#ifdef CORE_SG
if(game->pak->attribute("board") == "sg1000a") {
if(!ares::SG1000::load(root, {"[Sega] SG-1000A"})) return false;
systemPakName = "SG-1000A";
Expand All @@ -50,11 +51,11 @@ auto Arcade::load() -> bool {
port->allocate();
port->connect();
}
} else {
return false;
return true;
}
#endif

return true;
return false;
}

auto Arcade::save() -> bool {
Expand Down

0 comments on commit a47bbea

Please sign in to comment.