From beb003df5f4b840950ce58e65b4b47dcf89e69f3 Mon Sep 17 00:00:00 2001 From: Agent X <44549182+Agent-11@users.noreply.github.com> Date: Thu, 14 Mar 2024 21:33:33 -0400 Subject: [PATCH] v0.2 Hotfix - Fixed update checker causing loading screen stutter - Fixed update checker reading latest version as "0.2A?" --- src/pc/update_checker.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/pc/update_checker.c b/src/pc/update_checker.c index 4b8be5a9..0a3ca494 100644 --- a/src/pc/update_checker.c +++ b/src/pc/update_checker.c @@ -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)) {