Skip to content

Commit

Permalink
testing9
Browse files Browse the repository at this point in the history
  • Loading branch information
juztamau5 committed Mar 10, 2024
1 parent 89cf107 commit dcb43e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openai/src/emulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ bool Emulator::loadRom(const string& romPath) {

auto core = coreForRom(romPath);
if (core.size() == 0) {
return false;
throw std::runtime_error("Could not load core for ROM: " + romPath);
}

if (m_coreHandle && m_core != core) {
Expand All @@ -96,7 +96,7 @@ bool Emulator::loadRom(const string& romPath) {
lib += "so";
#endif
if (!loadCore(corePath() + "/" + lib)) {
return false;
throw std::runtime_error("Could not load core: " + corePath() + "/" + lib);
}
m_core = core;
}
Expand Down

0 comments on commit dcb43e0

Please sign in to comment.