Reversed arguments in system loader
This commit is contained in:
parent
0dcc3b4c2e
commit
33d6ef8cd2
|
@ -62,9 +62,9 @@ system_load(Uxn *u, char *filename)
|
||||||
FILE *f = fopen(filename, "rb");
|
FILE *f = fopen(filename, "rb");
|
||||||
if(!f)
|
if(!f)
|
||||||
return 0;
|
return 0;
|
||||||
l = fread(&u->ram[PAGE_PROGRAM], 1, 0x10000 - PAGE_PROGRAM, f);
|
l = fread(&u->ram[PAGE_PROGRAM], 0x10000 - PAGE_PROGRAM, 1, f);
|
||||||
while(l && ++i < RAM_PAGES)
|
while(l && ++i < RAM_PAGES)
|
||||||
l = fread(u->ram + 0x10000 * i, 1, 0x10000, f);
|
l = fread(u->ram + 0x10000 * i, 0x10000, 1, f);
|
||||||
fclose(f);
|
fclose(f);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue