mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 13:42:47 +00:00
scripting: don't initialize dynamic env vars until they're needed
this should fix the long delay on loading any script
This commit is contained in:
parent
8d1557191f
commit
682b570ef7
@ -527,7 +527,6 @@ bool init_vars(const char* path_script) {
|
||||
set_var("RDTYPE", IS_DEVKIT ? "devkit" : "retail"); // devkit / retail
|
||||
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
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user