From d1c156d56cabf8033e6e3c999a441308a671cfd9 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Tue, 17 Oct 2023 20:43:49 +0200 Subject: [PATCH] Fix uxncli missing device pointer --- src/uxncli.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/uxncli.c b/src/uxncli.c index aaab438..2d7d26d 100644 --- a/src/uxncli.c +++ b/src/uxncli.c @@ -64,7 +64,9 @@ emu_end(Uxn *u) int main(int argc, char **argv) { - Uxn u = {0}; + Uint8 dev[0x100] = {0}; + Uxn u; + u.dev = (Uint8 *)&dev; int i = 1; if(i == argc) return system_error("usage", "uxncli [-v] file.rom [args..]");