Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Skarsnik committed Jan 15, 2021
2 parents 3d24bb4 + 89627bb commit 03a4c49
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions usb2snesstatut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,14 +211,15 @@ void USB2SnesStatut::onTimerTick()
sDebug() << "tick infos : " << infos;
if (infos.isEmpty())
return ;
if (infos.at(2) != "/sd2snes/menu.bin" && romRunning == false)
bool isMenuRom = infos.at(2) == "/sd2snes/menu.bin" || infos.at(2) == "/sd2snes/m3nu.bin";
if (isMenuRom == false && romRunning == false)
{
romRunning = true;
menuRunning = false;
onRomStarted();
timer.setInterval(CHECK_ROMRUNNING_TICK * 2);
}
if (infos.at(2) == "/sd2snes/menu.bin" && menuRunning == false)
if (isMenuRom == true && menuRunning == false)
{
ui->romPatchedLabel->setText(tr("SD2SNES on Menu"));
romRunning = false;
Expand Down

0 comments on commit 03a4c49

Please sign in to comment.