From 3d957f444c6aebbd86cd1a6a843ae33d700a6b98 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Tue, 21 Mar 2023 16:18:41 +0100 Subject: [PATCH] Only ignore clock table on ENOENT --- src/emu/system.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emu/system.c b/src/emu/system.c index cc30db2..07914a4 100644 --- a/src/emu/system.c +++ b/src/emu/system.c @@ -337,7 +337,7 @@ load_clock_offsets(struct clkoff *clkoff, struct emu_args *args) FILE *f = fopen(offset_file, "r"); if (f == NULL) { - if (is_optional) + if (is_optional && errno == ENOENT) return 0; err("fopen %s failed:", offset_file);