From ddcc2601e4c04ab2eae220586e317e0f5fbc7ddb Mon Sep 17 00:00:00 2001 From: qurious-pixel <62252937+qurious-pixel@users.noreply.github.com> Date: Wed, 11 May 2022 09:06:23 -0700 Subject: [PATCH] Check for "soh.elf" in directory (#6) hide second button if `soh.exe` or `soh.elf` is present --- OTRGui/src/game/game.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OTRGui/src/game/game.cpp b/OTRGui/src/game/game.cpp index 88bd7201f..ed399e8dd 100644 --- a/OTRGui/src/game/game.cpp +++ b/OTRGui/src/game/game.cpp @@ -67,7 +67,7 @@ void OTRGame::init(){ mat.shader = shader; } - if(fs::exists("soh.exe") && !fs::exists("oot.otr")) { + if(fs::exists("soh.exe") || fs::exists("soh.elf") && !fs::exists("oot.otr")) { hide_second_btn = true; sohFolder = "."; } @@ -220,4 +220,4 @@ void setCurrentStep(const std::string& step) { void OTRGame::exit(){ -} \ No newline at end of file +}