From 38ebb77eda6add768739e8113df9d2c627507ab6 Mon Sep 17 00:00:00 2001 From: IonutParau Date: Tue, 15 Jul 2025 19:22:15 +0200 Subject: [PATCH] some debug stuff --- src/emulator.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/emulator.c b/src/emulator.c index 32fc37d..6a054f9 100644 --- a/src/emulator.c +++ b/src/emulator.c @@ -229,6 +229,9 @@ void *ne_fs_open(nn_address address, const char *path, const char *mode) { const char *p = ne_fs_diskPath(address, path); if(p[0] == '/') p++; FILE *f = fopen(p, trueMode); + if(f == NULL) { + printf("open(%s) failure: %s\n", path, strerror(errno)); + } return f; }