Skip to content

Commit

Permalink
DEBUG: File loading problem?
Browse files Browse the repository at this point in the history
  • Loading branch information
vabold committed Mar 26, 2024
1 parent 66793cc commit 91027ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/abstract/File.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ u8 *Load(const char *path, size_t &size) {
snprintf(filepath, sizeof(filepath), "./%s", path);
std::ifstream file(filepath, std::ios::binary);
if (!file) {
exit(404);
K_PANIC("File with provided path %s was not loaded correctly!", path);
}

Expand Down

0 comments on commit 91027ae

Please sign in to comment.