mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-25 21:45:12 +00:00
Hide old lobbies not on sm64coopdx
This commit is contained in:
parent
8690c0e4ee
commit
91b61d2f8a
2 changed files with 11 additions and 2 deletions
|
@ -78,6 +78,7 @@ void djui_panel_join_query(uint64_t aLobbyId, UNUSED uint64_t aOwnerId, uint16_t
|
||||||
if (!sLobbyLayout) { return; }
|
if (!sLobbyLayout) { return; }
|
||||||
if (!sLobbyPaginated) { return; }
|
if (!sLobbyPaginated) { return; }
|
||||||
if (aMaxConnections > MAX_PLAYERS) { return; }
|
if (aMaxConnections > MAX_PLAYERS) { return; }
|
||||||
|
if (strstr(aVersion, "v36") || strstr(aVersion, "beta")) { return; }
|
||||||
|
|
||||||
char playerText[64] = "";
|
char playerText[64] = "";
|
||||||
snprintf(playerText, 63, "%u/%u", aConnections, aMaxConnections);
|
snprintf(playerText, 63, "%u/%u", aConnections, aMaxConnections);
|
||||||
|
|
|
@ -16,9 +16,17 @@ const char* get_version(void) {
|
||||||
|
|
||||||
const char* get_version_online(void) {
|
const char* get_version_online(void) {
|
||||||
#if defined(VERSION_US)
|
#if defined(VERSION_US)
|
||||||
|
if (MINOR_VERSION_NUMBER > 0) {
|
||||||
|
snprintf(sOnlineVersionString, MAX_VERSION_LENGTH, "%s%d.%d", VERSION_TEXT, VERSION_NUMBER, MINOR_VERSION_NUMBER);
|
||||||
|
} else {
|
||||||
snprintf(sOnlineVersionString, MAX_VERSION_LENGTH, "%s%d", VERSION_TEXT, VERSION_NUMBER);
|
snprintf(sOnlineVersionString, MAX_VERSION_LENGTH, "%s%d", VERSION_TEXT, VERSION_NUMBER);
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
|
if (MINOR_VERSION_NUMBER > 0) {
|
||||||
|
snprintf(sOnlineVersionString, MAX_VERSION_LENGTH, "%s%d.%d %s", VERSION_TEXT, VERSION_NUMBER, MINOR_VERSION_NUMBER, VERSION_REGION);
|
||||||
|
} else {
|
||||||
snprintf(sOnlineVersionString, MAX_VERSION_LENGTH, "%s%d %s", VERSION_TEXT, VERSION_NUMBER, VERSION_REGION);
|
snprintf(sOnlineVersionString, MAX_VERSION_LENGTH, "%s%d %s", VERSION_TEXT, VERSION_NUMBER, VERSION_REGION);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
return sOnlineVersionString;
|
return sOnlineVersionString;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue