summaryrefslogtreecommitdiff
path: root/tools/mzscript.c
diff options
context:
space:
mode:
authorKonAki <konaki@anokonaki.org>2026-10-15 05:43:54 +0800
committerKonAki <konaki@anokonaki.org>2026-10-15 05:43:54 +0800
commitdcdff7cbf60eb04546c9174ae12c067bc6b4a405 (patch)
treee2c0c08876a3a7632d5b32e233185f23cbb51dc1 /tools/mzscript.c
parent8f7ddcba35ca1c3478fd0baad756f8031b5d5a3c (diff)
say when the output folder is missing
Diffstat (limited to 'tools/mzscript.c')
-rw-r--r--tools/mzscript.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/mzscript.c b/tools/mzscript.c
index 38b2f6d..a0d48d6 100644
--- a/tools/mzscript.c
+++ b/tools/mzscript.c
@@ -771,7 +771,7 @@ static int writeSpeakers(const char *prefix, const char *name, int scratchSwitch
snprintf(path, sizeof path, "%s_speakers.h", prefix);
f = fopen(path, "wb");
if (!f) {
- fprintf(stderr, "cannot write %s\n", path);
+ fprintf(stderr, "cannot write %s (does the output folder exist?)\n", path);
return 1;
}
fprintf(f, "/* made by mzscript, don't edit */\n\n#ifndef %s_SPEAKERS_H\n#define %s_SPEAKERS_H\n\n", upper, upper);
@@ -786,7 +786,7 @@ static int writeSpeakers(const char *prefix, const char *name, int scratchSwitch
snprintf(path, sizeof path, "%s_speakers.c", prefix);
f = fopen(path, "wb");
if (!f) {
- fprintf(stderr, "cannot write %s\n", path);
+ fprintf(stderr, "cannot write %s (does the output folder exist?)\n", path);
return 1;
}
fprintf(f, "/* made by mzscript, don't edit */\n\n#include \"%s_speakers.h\"\n\n", base);
@@ -908,7 +908,7 @@ int main(int argc, char **argv)
snprintf(path, sizeof path, "%s.kons", prefix);
f = fopen(path, "wb");
if (!f || fwrite(out.p, 1, out.n, f) != out.n || fclose(f) != 0) {
- fprintf(stderr, "cannot write %s\n", path);
+ fprintf(stderr, "cannot write %s (does the output folder exist?)\n", path);
return 1;
}
}