Hide old lobbies not on sm64coopdx
This commit is contained in:
parent
8690c0e4ee
commit
91b61d2f8a
|
@ -78,6 +78,7 @@ void djui_panel_join_query(uint64_t aLobbyId, UNUSED uint64_t aOwnerId, uint16_t
|
|||
if (!sLobbyLayout) { return; }
|
||||
if (!sLobbyPaginated) { return; }
|
||||
if (aMaxConnections > MAX_PLAYERS) { return; }
|
||||
if (strstr(aVersion, "v36") || strstr(aVersion, "beta")) { return; }
|
||||
|
||||
char playerText[64] = "";
|
||||
snprintf(playerText, 63, "%u/%u", aConnections, aMaxConnections);
|
||||
|
|
|
@ -16,9 +16,17 @@ const char* get_version(void) {
|
|||
|
||||
const char* get_version_online(void) {
|
||||
#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);
|
||||
}
|
||||
#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);
|
||||
}
|
||||
#endif
|
||||
return sOnlineVersionString;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue