Fix audio device regression

This commit is contained in:
Bad Diode 2023-12-20 09:20:22 +01:00
parent 8ca6c75e29
commit 7ec95315ce
2 changed files with 4 additions and 1 deletions

View File

@ -29,7 +29,7 @@ typedef struct {
} Stack;
typedef struct Uxn {
Uint8 *ram, dev[0x100];
Uint8 *ram, *dev;
Stack wst, rst;
} Uxn;

View File

@ -488,7 +488,10 @@ main(int argc, char **argv)
{
Uint8 *ram;
char *rom;
Uint8 dev[0x100] = {0};
Uxn u = {0}, u_audio = {0};
u.dev = (Uint8 *)&dev;
u_audio.dev = (Uint8 *)&dev;
int i = 1;
if(i == argc)
return system_error("usage", "uxnemu [-v] | uxnemu [-f | -2x | -3x | --] file.rom [args...]");