v0.2 Hotfix

- Fixed update checker causing loading screen stutter
- Fixed update checker reading latest version as "0.2A?"
This commit is contained in:
Agent X 2024-03-14 21:33:33 -04:00
parent a2f319c1e1
commit beb003df5f
1 changed files with 2 additions and 4 deletions

View File

@ -74,6 +74,7 @@ void get_version_remote(void) {
return;
}
buffer[bytesRead] = '\0';
strncpy(sRemoteVersion, buffer, 8);
// close handles
@ -114,10 +115,7 @@ void get_version_remote(void) {
}
void check_for_updates(void) {
REFRESH_MUTEX(
gCurrLoadingSegment.percentage = 0;
snprintf(gCurrLoadingSegment.str, 256, "Checking For Updates");
);
if (gIsThreaded) { REFRESH_MUTEX(snprintf(gCurrLoadingSegment.str, 256, "Checking For Updates")); }
get_version_remote();
if (sRemoteVersion[0] != '\0' && strcmp(sRemoteVersion, SM64COOPDX_VERSION)) {