1
0
Fork 0
mirror of https://github.com/suchmememanyskill/TegraExplorer.git synced 2024-11-08 13:11:54 +00:00
This commit is contained in:
suchmememanyskill 2021-07-23 16:19:32 +02:00
parent f5623a4fdc
commit 987b7e8765

View file

@ -234,8 +234,10 @@ void EnterMainMenu(){
res = newMenu(&ent, res, 79, 30, (ent.count == ARRAY_SIZE(mainMenuEntries)) ? ALWAYSREDRAW : ALWAYSREDRAW | ENABLEPAGECOUNT, ent.count - ARRAY_SIZE(mainMenuEntries)); res = newMenu(&ent, res, 79, 30, (ent.count == ARRAY_SIZE(mainMenuEntries)) ? ALWAYSREDRAW : ALWAYSREDRAW | ENABLEPAGECOUNT, ent.count - ARRAY_SIZE(mainMenuEntries));
if (res < MainScripts && mainMenuPaths[res] != NULL) if (res < MainScripts && mainMenuPaths[res] != NULL)
mainMenuPaths[res](); mainMenuPaths[res]();
#ifndef INCLUDE_BUILTIN_SCRIPTS
else if (hasScripts){ else if (hasScripts){
#ifdef INCLUDE_BUILTIN_SCRIPTS #else
else {
if (res - ARRAY_SIZE(mainMenuEntries) < EMBEDDED_SCRIPTS_LEN){ if (res - ARRAY_SIZE(mainMenuEntries) < EMBEDDED_SCRIPTS_LEN){
char *script = embedded_scripts_g[res - ARRAY_SIZE(mainMenuEntries)].script; char *script = embedded_scripts_g[res - ARRAY_SIZE(mainMenuEntries)].script;
RunScriptString(script, strlen(script)); RunScriptString(script, strlen(script));