uxn

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

commit d2627a7e461aff4b0be56b6c609624aec97f71d6
parent 3bfebc570deee12c878b2dadfb4b42b6c0d85622
Author: Andrew Alderwick <andrew@alderwick.co.uk>
Date:   Wed, 14 Jul 2021 20:10:45 +0100

Updated file_talk in uxncli

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

diff --git a/src/uxncli.c b/src/uxncli.c @@ -60,10 +60,10 @@ file_talk(Device *d, Uint8 b0, Uint8 w) Uint16 addr = mempeek16(d->dat, b0 - 1); FILE *f = fopen(name, read ? "r" : (offset ? "a" : "w")); if(f) { - printf("%s %04x %s %s: ", read ? "Loading" : "Saving", addr, read ? "from" : "to", name); + fprintf(stderr, "%s %s %s #%04x, ", read ? "Loading" : "Saving", name, read ? "to" : "from", addr); if(fseek(f, offset, SEEK_SET) != -1) result = read ? fread(&d->mem[addr], 1, length, f) : fwrite(&d->mem[addr], 1, length, f); - printf("%04x bytes\n", result); + fprintf(stderr, "%04x bytes\n", result); fclose(f); } mempoke16(d->dat, 0x2, result);