From 00e8f43df8dffb1d3de659e67579cf07a006d06b Mon Sep 17 00:00:00 2001 From: iWas-Coder Date: Sat, 8 Jun 2024 01:17:32 +0200 Subject: [PATCH] fix: `assets.skap` file needs to be opened in write mode --- tools/skap/src/skap_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/skap/src/skap_file.c b/tools/skap/src/skap_file.c index df05968..6146170 100644 --- a/tools/skap/src/skap_file.c +++ b/tools/skap/src/skap_file.c @@ -34,7 +34,7 @@ FILE *skap_file_create(void) { } } else printf(" TOUCH " SKAP_FILENAME "\n"); - return fopen(SKAP_FILENAME, "ab"); + return fopen(SKAP_FILENAME, "wb"); } void skap_file_destroy(FILE *fd) {