- [NEW] Afegit argument al executable "--skipbios", per a no tornar-se loco mentres developes amb el "TURIRURIruriruri..."
This commit is contained in:
@@ -218,8 +218,14 @@ void romcpy() {
|
|||||||
void debug_set_prompt();
|
void debug_set_prompt();
|
||||||
|
|
||||||
int main(int argc,char*argv[]) {
|
int main(int argc,char*argv[]) {
|
||||||
|
bool skip_bios = false;
|
||||||
SDL_strlcpy(lua_filename, "game.lua", 9);
|
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;
|
//[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();
|
romcpy();
|
||||||
reinit();
|
reinit();
|
||||||
debug("ASCII SYSTEM BOOTING...");
|
debug("ASCII SYSTEM BOOTING...");
|
||||||
lua_init(NULL);
|
lua_init(skip_bios ? lua_filename : NULL);
|
||||||
lua_call_init();
|
lua_call_init();
|
||||||
|
|
||||||
SDL_SetEventEnabled(SDL_EVENT_DROP_FILE, true);
|
SDL_SetEventEnabled(SDL_EVENT_DROP_FILE, true);
|
||||||
|
|||||||
@@ -431,7 +431,7 @@ const char boot[] =
|
|||||||
"ink(1) print('G A M E',8,16)"
|
"ink(1) print('G A M E',8,16)"
|
||||||
"ink(4) print('S Y S T E M',20,16)"
|
"ink(4) print('S Y S T E M',20,16)"
|
||||||
"ink(7) print('mini',9,8)"
|
"ink(7) print('mini',9,8)"
|
||||||
"ink(8) print('v0.7.6',34,29)"
|
"ink(8) print('v0.7.7',34,29)"
|
||||||
"w=time() "
|
"w=time() "
|
||||||
"end "
|
"end "
|
||||||
"function update()"
|
"function update()"
|
||||||
|
|||||||
Reference in New Issue
Block a user