- [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();
|
||||
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user