commit 19e84072d86d59e0347941e4a740ceb3ab63bc77
parent 25858c394837f0fac0aed4029b6c5836cc6ca7e4
Author: neauoire <aliceffekt@gmail.com>
Date: Sat, 4 Sep 2021 09:11:43 -0700
Removed file_talk debugs
Diffstat:
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git 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
@@ -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);