From b228b3bb0e0fafd33d4f25bbc02de46604d95619 Mon Sep 17 00:00:00 2001 From: Agent X <44549182+AgentXLP@users.noreply.github.com> Date: Sun, 30 Jun 2024 07:43:09 -0400 Subject: [PATCH] Re-enable update checker/changelog code, set version back to v1.0 --- autogen/lua_definitions/constants.lua | 2 +- src/pc/djui/djui.c | 2 +- src/pc/lua/smlua_constants_autogen.c | 2 +- src/pc/network/version.h | 2 +- src/pc/pc_main.c | 6 +++--- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/autogen/lua_definitions/constants.lua b/autogen/lua_definitions/constants.lua index c1d9cca8..306a4f19 100644 --- a/autogen/lua_definitions/constants.lua +++ b/autogen/lua_definitions/constants.lua @@ -12576,7 +12576,7 @@ MINOR_VERSION_NUMBER = 0 PATCH_VERSION_NUMBER = 0 --- @type string -SM64COOPDX_VERSION = "Prerelease_4" +SM64COOPDX_VERSION = "v1.0" --- @type integer VERSION_NUMBER = 37 diff --git a/src/pc/djui/djui.c b/src/pc/djui/djui.c index 9f825d54..bea07398 100644 --- a/src/pc/djui/djui.c +++ b/src/pc/djui/djui.c @@ -108,7 +108,7 @@ void djui_init_late(void) { gPanelLanguageOnStartup = true; djui_panel_language_create(NULL); } - if (true) { // strcmp(configLastVersion, get_version())) { + if (strcmp(configLastVersion, get_version())) { snprintf(configLastVersion, MAX_CONFIG_STRING, "%s", get_version()); djui_panel_changelog_create(NULL); } diff --git a/src/pc/lua/smlua_constants_autogen.c b/src/pc/lua/smlua_constants_autogen.c index 2ce5131c..4c01a280 100644 --- a/src/pc/lua/smlua_constants_autogen.c +++ b/src/pc/lua/smlua_constants_autogen.c @@ -4403,7 +4403,7 @@ char gSmluaConstants[] = "" "COOP_OBJ_FLAG_LUA = (1 << 1)\n" "COOP_OBJ_FLAG_NON_SYNC = (1 << 2)\n" "COOP_OBJ_FLAG_INITIALIZED = (1 << 3)\n" -"SM64COOPDX_VERSION = 'Prerelease_4'\n" +"SM64COOPDX_VERSION = 'v1.0'\n" "VERSION_TEXT = 'v'\n" "VERSION_NUMBER = 37\n" "MINOR_VERSION_NUMBER = 0\n" diff --git a/src/pc/network/version.h b/src/pc/network/version.h index e166290e..3590fff3 100644 --- a/src/pc/network/version.h +++ b/src/pc/network/version.h @@ -1,7 +1,7 @@ #ifndef VERSION_H #define VERSION_H -#define SM64COOPDX_VERSION "Prerelease_4" +#define SM64COOPDX_VERSION "v1.0" // internal version #define VERSION_TEXT "v" diff --git a/src/pc/pc_main.c b/src/pc/pc_main.c index ec4e94a6..1921aa2f 100644 --- a/src/pc/pc_main.c +++ b/src/pc/pc_main.c @@ -318,9 +318,9 @@ void* main_game_init(void* isThreaded) { enable_queued_dynos_packs(); sync_objects_init_system(); - // if (gCLIOpts.network != NT_SERVER) { - // check_for_updates(); - // } + if (gCLIOpts.network != NT_SERVER) { + check_for_updates(); + } LOADING_SCREEN_MUTEX(loading_screen_set_segment_text("Loading ROM Assets")); rom_assets_load();