From 19e84072d86d59e0347941e4a740ceb3ab63bc77 Mon Sep 17 00:00:00 2001 From: neauoire Date: Sat, 4 Sep 2021 09:11:43 -0700 Subject: [PATCH] Removed file_talk debugs --- src/uxncli.c | 2 -- src/uxnemu.c | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/uxncli.c b/src/uxncli.c index 453a48a..e089fd5 100644 --- a/src/uxncli.c +++ b/src/uxncli.c @@ -83,10 +83,8 @@ file_talk(Device *d, Uint8 b0, Uint8 w) Uint16 addr = peek16(d->dat, b0 - 1); FILE *f = fopen(name, read ? "rb" : (offset ? "ab" : "wb")); if(f) { - 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); - fprintf(stderr, "%04x bytes\n", result); fclose(f); } poke16(d->dat, 0x2, result); diff --git a/src/uxnemu.c b/src/uxnemu.c index d1703cf..4f1c235 100644 --- a/src/uxnemu.c +++ b/src/uxnemu.c @@ -348,10 +348,10 @@ file_talk(Device *d, Uint8 b0, Uint8 w) Uint16 addr = peek16(d->dat, b0 - 1); FILE *f = fopen(name, read ? "rb" : (offset ? "ab" : "wb")); if(f) { - fprintf(stderr, "%s %s %s #%04x, ", read ? "Loading" : "Saving", name, read ? "to" : "from", addr); + /* 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); - fprintf(stderr, "%04x bytes\n", result); + /* fprintf(stderr, "%04x bytes\n", result); */ fclose(f); } poke16(d->dat, 0x2, result);