mirror of
https://git.sr.ht/~rabbits/uxn
synced 2024-11-27 16:23:02 +00:00
Removed file_talk debugs
This commit is contained in:
parent
25858c3948
commit
19e84072d8
2 changed files with 2 additions and 4 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue