Browse code

Fixed uxn-fast.c

Andrew Alderwick authored on 01/08/2021 21:40:14
Showing 1 changed files
... ...
@@ -4030,24 +4030,13 @@ error:
4030 4030
 int
4031 4031
 bootuxn(Uxn *u)
4032 4032
 {
4033
-	size_t i;
4033
+	unsigned int i;
4034 4034
 	char *cptr = (char *)u;
4035 4035
 	for(i = 0; i < sizeof(*u); i++)
4036 4036
 		cptr[i] = 0;
4037 4037
 	return 1;
4038 4038
 }
4039 4039
 
4040
-int
4041
-loaduxn(Uxn *u, char *filepath)
4042
-{
4043
-	FILE *f;
4044
-	if(!(f = fopen(filepath, "rb"))) 
4045
-		return 0;
4046
-	fread(u->ram.dat + PAGE_PROGRAM, sizeof(u->ram.dat) - PAGE_PROGRAM, 1, f);
4047
-	fprintf(stderr, "Uxn loaded[%s].\n", filepath);
4048
-	return 1;
4049
-}
4050
-
4051 4040
 Device *
4052 4041
 portuxn(Uxn *u, Uint8 id, char *name, void (*talkfn)(Device *d, Uint8 b0, Uint8 w))
4053 4042
 {
... ...
@@ -4056,6 +4045,5 @@ portuxn(Uxn *u, Uint8 id, char *name, void (*talkfn)(Device *d, Uint8 b0, Uint8
4056 4045
 	d->u = u;
4057 4046
 	d->mem = u->ram.dat;
4058 4047
 	d->talk = talkfn;
4059
-	fprintf(stderr, "Device added #%02x: %s, at 0x%04x \n", id, name, d->addr);
4060 4048
 	return d;
4061 4049
 }