Skip to content

Commit

Permalink
Consistent logging of img load events (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
iWas-Coder committed Jun 1, 2024
1 parent 24c2765 commit ef407e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions tools/skap/src/skap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
3 changes: 2 additions & 1 deletion tools/skap/src/skap_idx_image.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]));
}
}

Expand Down

0 comments on commit ef407e2

Please sign in to comment.