diff --git a/src/wx/cmdevents.cpp b/src/wx/cmdevents.cpp index 56ed9d1c..792f43cc 100644 --- a/src/wx/cmdevents.cpp +++ b/src/wx/cmdevents.cpp @@ -2608,7 +2608,7 @@ EVT_HANDLER(SpeedOn, "Enable faster network protocol by default") EVT_HANDLER(LinkProto, "Local host IPC") { - GetMenuOptionConfig("LinkProto", config::OptionID::kGBALinkHost); + GetMenuOptionConfig("LinkProto", config::OptionID::kGBALinkProto); } EVT_HANDLER(LinkConfigure, "Link options...") diff --git a/src/wx/wxvbam.cpp b/src/wx/wxvbam.cpp index b3ed8ba3..d1df3598 100644 --- a/src/wx/wxvbam.cpp +++ b/src/wx/wxvbam.cpp @@ -406,6 +406,11 @@ bool wxvbamApp::OnInit() { config_file_.GetFullPath(), wxEmptyString, wxCONFIG_USE_LOCAL_FILE)); + // wx does not create the directories by itself so do it here, if needed. + if (!wxDirExists(config_file_.GetPath())) { + config_file_.Mkdir(wxS_DIR_DEFAULT, wxPATH_MKDIR_FULL); + } + // Load the default options. load_opts(!config_file_.Exists());