From ef407e2f0a1d8bb8bf1f78feed6d9573be4b7122 Mon Sep 17 00:00:00 2001 From: iWas-Coder Date: Sat, 1 Jun 2024 18:06:58 +0200 Subject: [PATCH] Consistent logging of img load events (#31) --- tools/skap/src/skap.c | 1 + tools/skap/src/skap_idx_image.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/skap/src/skap.c b/tools/skap/src/skap.c index 8f36adb..b170993 100644 --- a/tools/skap/src/skap.c +++ b/tools/skap/src/skap.c @@ -37,6 +37,7 @@ static usz img_idx_locs[IMG_COUNT] = {0}; int main(void) { int result = 0; + SetTraceLogLevel(LOG_WARNING); skap_idx_image_loadall(imgs, img_paths, IMG_COUNT); FILE *fd = skap_file_create(); skap_header header = skap_header_create(); diff --git a/tools/skap/src/skap_idx_image.c b/tools/skap/src/skap_idx_image.c index ebee9eb..ccaebc3 100644 --- a/tools/skap/src/skap_idx_image.c +++ b/tools/skap/src/skap_idx_image.c @@ -24,8 +24,9 @@ void skap_idx_image_loadall(Image *imgs, const char **img_paths, usz size) { for (usz i = 0; i < size; ++i) { + printf(" LOAD %s\n", img_paths[i]); imgs[i] = LoadImage(img_paths[i]); - assert(imgs[i].data); + assert(IsImageReady(imgs[i])); } }