... | ... |
@@ -255,9 +255,8 @@ emu_init(void) |
255 | 255 |
} |
256 | 256 |
|
257 | 257 |
static int |
258 |
-emu_start(Uxn *u, char *rom, int queue) |
|
258 |
+emu_start(Uxn *u, char *rom) |
|
259 | 259 |
{ |
260 |
- u->dev[0x17] = queue; |
|
261 | 260 |
exec_deadline = SDL_GetPerformanceCounter() + deadline_interval; |
262 | 261 |
screen_resize(WIDTH, HEIGHT); |
263 | 262 |
if(!uxn_eval(u, PAGE_PROGRAM)) |
... | ... |
@@ -270,8 +269,8 @@ static void |
270 | 269 |
emu_restart(Uxn *u) |
271 | 270 |
{ |
272 | 271 |
screen_resize(WIDTH, HEIGHT); |
273 |
- if(!emu_start(u, "launcher.rom", 0)) |
|
274 |
- emu_start(u, rom_path, 0); |
|
272 |
+ if(!emu_start(u, "launcher.rom")) |
|
273 |
+ emu_start(u, rom_path); |
|
275 | 274 |
} |
276 | 275 |
|
277 | 276 |
static int |
... | ... |
@@ -384,7 +383,7 @@ handle_events(Uxn *u) |
384 | 383 |
emu_redraw(u); |
385 | 384 |
else if(event.type == SDL_DROPFILE) { |
386 | 385 |
screen_resize(WIDTH, HEIGHT); |
387 |
- emu_start(u, event.drop.file, 0); |
|
386 |
+ emu_start(u, event.drop.file); |
|
388 | 387 |
SDL_free(event.drop.file); |
389 | 388 |
} |
390 | 389 |
/* Audio */ |
... | ... |
@@ -545,8 +544,9 @@ main(int argc, char **argv) |
545 | 544 |
return system_error("Init", "Failed to initialize varvara."); |
546 | 545 |
if(!system_init(&u, (Uint8 *)calloc(0x10000 * RAM_PAGES, sizeof(Uint8)), rom_path)) |
547 | 546 |
return system_error("Init", "Failed to initialize uxn."); |
547 |
+ u.dev[0x17] = argc - i; |
|
548 | 548 |
/* load rom */ |
549 |
- if(!emu_start(&u, rom_path, argc - i)) |
|
549 |
+ if(!emu_start(&u, rom_path)) |
|
550 | 550 |
return system_error("Start", "Failed"); |
551 | 551 |
/* read arguments */ |
552 | 552 |
for(; i < argc; i++) { |