commit 48ca266

Devine Lu Linvega  ·  2022-06-13 18:21:15 +0000 UTC
parent 53673c2
Minor housekeeping
2 files changed,  +3, -7
+0, -2
1@@ -77,8 +77,6 @@ The following resources are a good place to start:
2 * [XXIIVV — uxntal reference](https://wiki.xxiivv.com/site/uxntal_reference.html)
3 * [compudanzas — uxn tutorial](https://compudanzas.net/uxn_tutorial.html)
4 
5-You can also find us in [`#uxn` on irc.esper.net](ircs://irc.esper.net:6697/#uxn).
6-
7 ## Contributing
8 
9 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).
+3, -5
 1@@ -198,7 +198,7 @@ emu_event(Uxn *u)
 2 }
 3 
 4 static int
 5-init(char *title)
 6+viewport_start(char *title)
 7 {
 8 	Atom wmDelete;
 9 	display = XOpenDisplay(NULL);
10@@ -227,16 +227,14 @@ main(int argc, char **argv)
11 	if(argc < 2)
12 		return emu_error("Usage", "uxn11 game.rom args");
13 	rom_path = argv[1];
14-	/* start sequence */
15-	u.ram = NULL;
16-	/* free(u->ram); */
17 	if(!uxn_boot(&u, (Uint8 *)calloc(0x10300, sizeof(Uint8))))
18 		return emu_error("Boot", "Failed");
19 	u.dei = emu_dei;
20 	u.deo = emu_deo;
21+	/* start sequence */
22 	if(!emu_start(&u, rom_path))
23 		return emu_error("Start", rom_path);
24-	if(!init(rom_path))
25+	if(!viewport_start(rom_path))
26 		return emu_error("Init", "Failed");
27 	/* console vector */
28 	for(i = 2; i < argc; i++) {