From 3d405166c5b38af183ad2fc60bb586f41c9f978f Mon Sep 17 00:00:00 2001 From: d0k3 Date: Thu, 18 Jan 2018 15:55:37 +0100 Subject: [PATCH] Fixed a typo --- arm9/source/godmode.c | 2 +- arm9/source/utils/scripting.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arm9/source/godmode.c b/arm9/source/godmode.c index 830f935..89601a2 100644 --- a/arm9/source/godmode.c +++ b/arm9/source/godmode.c @@ -1839,7 +1839,7 @@ u32 GodMode(int entrypoint) { if (IS_SIGHAX) { // we could actually do this on any entrypoint DsTime dstime; get_dstime(&dstime); - if ((DSTIMEGET(&dstime, bcd_Y) < 17) && + if ((DSTIMEGET(&dstime, bcd_Y) < 18) && ShowPrompt(true, "RTC date&time seems to be\nwrong. Set it now?") && ShowRtcSetterPrompt(&dstime, "Set RTC date&time:")) { char timestr[32]; diff --git a/arm9/source/utils/scripting.c b/arm9/source/utils/scripting.c index 32755bb..59a5f48 100644 --- a/arm9/source/utils/scripting.c +++ b/arm9/source/utils/scripting.c @@ -442,7 +442,7 @@ bool init_vars(const char* path_script) { set_var("HAX", IS_SIGHAX ? (isntrboot() ? "ntrboot" : "sighax") : IS_A9LH ? "a9lh" : ""); // type of hax running from set_var("ONTYPE", IS_O3DS ? "O3DS" : "N3DS"); // type of the console set_var("RDTYPE", IS_DEVKIT ? "devkit" : "retail"); // devkit / retail - char* ptr = set_var("GM9VER", GM9VER); // GodMode9 version, truncated below + char* ptr = set_var("GM9VER", VERSION); // GodMode9 version, truncated below while (*(ptr++) != '\0') if (*ptr == '-') *ptr = '\0'; upd_var(NULL); // set all dynamic environment vars