- [NEW] Afegit argument al executable "--skipbios", per a no tornar-se loco mentres developes amb el "TURIRURIruriruri..."

This commit is contained in:
2026-05-16 12:55:23 +02:00
parent 65b71361ae
commit 4cc0cb2edc
2 changed files with 9 additions and 3 deletions
+8 -2
View File
@@ -218,8 +218,14 @@ void romcpy() {
void debug_set_prompt();
int main(int argc,char*argv[]) {
bool skip_bios = false;
SDL_strlcpy(lua_filename, "game.lua", 9);
if (argc > 1) SDL_strlcpy(lua_filename, argv[1], 1023);
if (argc > 1) {
for (int i=0; i<argc; ++i) {
if (strcmp(argv[i], "--skipbios")==0) skip_bios = true;
else SDL_strlcpy(lua_filename, argv[i], 1023);
}
}
//[TODEL]for (int i=0; i<debug_total_size;++i) debug_text[i] = 32;
@@ -244,7 +250,7 @@ int main(int argc,char*argv[]) {
romcpy();
reinit();
debug("ASCII SYSTEM BOOTING...");
lua_init(NULL);
lua_init(skip_bios ? lua_filename : NULL);
lua_call_init();
SDL_SetEventEnabled(SDL_EVENT_DROP_FILE, true);
+1 -1
View File
@@ -431,7 +431,7 @@ const char boot[] =
"ink(1) print('G A M E',8,16)"
"ink(4) print('S Y S T E M',20,16)"
"ink(7) print('mini',9,8)"
"ink(8) print('v0.7.6',34,29)"
"ink(8) print('v0.7.7',34,29)"
"w=time() "
"end "
"function update()"