Fixed crash from missing dev page

This commit is contained in:
neauoire 2023-12-25 14:39:29 -08:00
parent 7ec95315ce
commit 3f252c0ee3
1 changed files with 2 additions and 0 deletions

View File

@ -66,6 +66,8 @@ main(int argc, char **argv)
{
Uxn u = {0};
int i = 1;
Uint8 dev[0x100] = {0};
u.dev = (Uint8 *)&dev;
if(i == argc)
return system_error("usage", "uxncli [-v] file.rom [args..]");
/* Read flags */