From 48ca266a4666f22d329e9d6049afc824b37f2aab Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Mon, 13 Jun 2022 11:21:15 -0700 Subject: [PATCH] Minor housekeeping --- README.md | 2 -- src/uxn11.c | 8 +++----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 478300f..2e8e1d8 100644 --- a/README.md +++ b/README.md @@ -77,8 +77,6 @@ The following resources are a good place to start: * [XXIIVV — uxntal reference](https://wiki.xxiivv.com/site/uxntal_reference.html) * [compudanzas — uxn tutorial](https://compudanzas.net/uxn_tutorial.html) -You can also find us in [`#uxn` on irc.esper.net](ircs://irc.esper.net:6697/#uxn). - ## Contributing Submit patches using [`git send-email`](https://git-send-email.io/) to the [~rabbits/public-inbox mailing list](https://lists.sr.ht/~rabbits/public-inbox). diff --git a/src/uxn11.c b/src/uxn11.c index 93d9142..147d6c0 100644 --- a/src/uxn11.c +++ b/src/uxn11.c @@ -198,7 +198,7 @@ emu_event(Uxn *u) } static int -init(char *title) +viewport_start(char *title) { Atom wmDelete; display = XOpenDisplay(NULL); @@ -227,16 +227,14 @@ main(int argc, char **argv) if(argc < 2) return emu_error("Usage", "uxn11 game.rom args"); rom_path = argv[1]; - /* start sequence */ - u.ram = NULL; - /* free(u->ram); */ if(!uxn_boot(&u, (Uint8 *)calloc(0x10300, sizeof(Uint8)))) return emu_error("Boot", "Failed"); u.dei = emu_dei; u.deo = emu_deo; + /* start sequence */ if(!emu_start(&u, rom_path)) return emu_error("Start", rom_path); - if(!init(rom_path)) + if(!viewport_start(rom_path)) return emu_error("Init", "Failed"); /* console vector */ for(i = 2; i < argc; i++) {