Hide old lobbies not on sm64coopdx

This commit is contained in:
Agent X 2024-07-10 12:16:04 -04:00
parent 8690c0e4ee
commit 91b61d2f8a
2 changed files with 11 additions and 2 deletions

View file

@ -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);

View file

@ -16,9 +16,17 @@ const char* get_version(void) {
const char* get_version_online(void) {
#if defined(VERSION_US)
snprintf(sOnlineVersionString, MAX_VERSION_LENGTH, "%s%d", VERSION_TEXT, VERSION_NUMBER);
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
snprintf(sOnlineVersionString, MAX_VERSION_LENGTH, "%s%d %s", VERSION_TEXT, VERSION_NUMBER, VERSION_REGION);
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;
}