summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/ConfigMain.cpp
diff options
context:
space:
mode:
authorskidau <skidau@gmail.com>2014-10-21 13:23:23 +1100
committerskidau <skidau@gmail.com>2014-10-21 13:23:23 +1100
commit3022da5d9f8b182fcaf912966edde67e407c1418 (patch)
treea8cf303c984227e491e94001c2ef148d4e183c09 /Source/Core/DolphinWX/ConfigMain.cpp
parentea16b2d06593ee08237bd64deef9481d91a7d137 (diff)
parenta67b9a4f52b9cc92a8a6fa5c2fa8a083f3348364 (diff)
Merge pull request #1318 from RachelBryk/disable-bios
Disable skip bios option if no bios files exists.
Diffstat (limited to 'Source/Core/DolphinWX/ConfigMain.cpp')
-rw-r--r--Source/Core/DolphinWX/ConfigMain.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/Core/DolphinWX/ConfigMain.cpp b/Source/Core/DolphinWX/ConfigMain.cpp
index 925803d2af..d868376687 100644
--- a/Source/Core/DolphinWX/ConfigMain.cpp
+++ b/Source/Core/DolphinWX/ConfigMain.cpp
@@ -703,6 +703,18 @@ void CConfigMain::CreateGUIControls()
// IPL settings
GCSystemLang = new wxChoice(GamecubePage, ID_GC_SRAM_LNG, wxDefaultPosition, wxDefaultSize, arrayStringFor_GCSystemLang);
GCAlwaysHLE_BS2 = new wxCheckBox(GamecubePage, ID_GC_ALWAYS_HLE_BS2, _("Skip BIOS"));
+
+ if (!File::Exists(File::GetUserPath(D_GCUSER_IDX) + DIR_SEP + USA_DIR + DIR_SEP GC_IPL) &&
+ !File::Exists(File::GetSysDirectory() + GC_SYS_DIR + DIR_SEP + USA_DIR + DIR_SEP GC_IPL) &&
+ !File::Exists(File::GetUserPath(D_GCUSER_IDX) + DIR_SEP + JAP_DIR + DIR_SEP GC_IPL) &&
+ !File::Exists(File::GetSysDirectory() + GC_SYS_DIR + DIR_SEP + JAP_DIR + DIR_SEP GC_IPL) &&
+ !File::Exists(File::GetUserPath(D_GCUSER_IDX) + DIR_SEP + EUR_DIR + DIR_SEP GC_IPL) &&
+ !File::Exists(File::GetSysDirectory() + GC_SYS_DIR + DIR_SEP + EUR_DIR + DIR_SEP GC_IPL))
+ {
+ GCAlwaysHLE_BS2->Disable();
+ GCAlwaysHLE_BS2->SetToolTip(_("Put BIOS roms in User/GC/{region}."));
+ }
+
// Device settings
// EXI Devices
wxStaticText* GCEXIDeviceText[3];