Check for "soh.elf" in directory (#6)

hide second button if `soh.exe` or `soh.elf` is present
This commit is contained in:
qurious-pixel 2022-05-11 09:06:23 -07:00 committed by GitHub
commit ddcc2601e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(){
}
}