Reversed arguments in system loader

This commit is contained in:
Devine Lu Linvega 2023-02-02 09:35:05 -08:00
parent 0dcc3b4c2e
commit 33d6ef8cd2
1 changed files with 2 additions and 2 deletions

View File

@ -62,9 +62,9 @@ system_load(Uxn *u, char *filename)
FILE *f = fopen(filename, "rb");
if(!f)
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)
l = fread(u->ram + 0x10000 * i, 1, 0x10000, f);
l = fread(u->ram + 0x10000 * i, 0x10000, 1, f);
fclose(f);
return 1;
}