uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit 33d6ef8cd28c73b4f6238934979d130a5523b9c9
parent 0dcc3b4c2e12bf2a61e682e9168e8bdb469caae0
Author: Devine Lu Linvega <aliceffekt@gmail.com>
Date:   Thu,  2 Feb 2023 09:35:05 -0800

Reversed arguments in system loader

Diffstat:
Msrc/devices/system.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/devices/system.c b/src/devices/system.c @@ -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; }