Fix audio device regression
This commit is contained in:
parent
8ca6c75e29
commit
7ec95315ce
|
@ -29,7 +29,7 @@ typedef struct {
|
||||||
} Stack;
|
} Stack;
|
||||||
|
|
||||||
typedef struct Uxn {
|
typedef struct Uxn {
|
||||||
Uint8 *ram, dev[0x100];
|
Uint8 *ram, *dev;
|
||||||
Stack wst, rst;
|
Stack wst, rst;
|
||||||
} Uxn;
|
} Uxn;
|
||||||
|
|
||||||
|
|
|
@ -488,7 +488,10 @@ main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
Uint8 *ram;
|
Uint8 *ram;
|
||||||
char *rom;
|
char *rom;
|
||||||
|
Uint8 dev[0x100] = {0};
|
||||||
Uxn u = {0}, u_audio = {0};
|
Uxn u = {0}, u_audio = {0};
|
||||||
|
u.dev = (Uint8 *)&dev;
|
||||||
|
u_audio.dev = (Uint8 *)&dev;
|
||||||
int i = 1;
|
int i = 1;
|
||||||
if(i == argc)
|
if(i == argc)
|
||||||
return system_error("usage", "uxnemu [-v] | uxnemu [-f | -2x | -3x | --] file.rom [args...]");
|
return system_error("usage", "uxnemu [-v] | uxnemu [-f | -2x | -3x | --] file.rom [args...]");
|
||||||
|
|
Loading…
Reference in New Issue