Skip to content

Commit

Permalink
Fix "Joybus host invalid; disabling" warning.
Browse files Browse the repository at this point in the history
Whenever there is a link connection for GBA, we check if "GBA/LinkHost"
is an empty string. If it is, we send this warning. This is unnecessary
because most connections are assumed to be for localhost, otherwise the
user would set a server ip address and not see this warning.
  • Loading branch information
denisfa authored and rkitover committed Jun 23, 2019
1 parent f6bfe67 commit 019ab5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/ConfigManager.cpp
Expand Up @@ -517,7 +517,7 @@ void LoadConfig()
languageOption = ReadPref("language", 1);
linkAuto = ReadPref("LinkAuto", 1);
linkHacks = ReadPref("LinkHacks", 0);
linkHostAddr = ReadPrefString("LinkHostAddr", "localhost");
linkHostAddr = ReadPrefString("LinkHost", "localhost");
linkMode = ReadPref("LinkMode", 0); // LINK_DISCONNECTED = 0
linkNumPlayers = ReadPref("LinkNumPlayers", 2);
linkTimeout = ReadPref("LinkTimeout", 1);
Expand Down
2 changes: 2 additions & 0 deletions src/wx/opts.cpp
Expand Up @@ -348,6 +348,8 @@ opts_t::opts_t()
print_auto_page = true;
autoPatch = true;
onlineupdates = 1;
// quick fix for issues #48 and #445
link_host = "127.0.0.1";
}

// for binary_search() and friends
Expand Down

0 comments on commit 019ab5a

Please sign in to comment.