diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-06 17:37:45 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-06 17:37:45 +0200 |
| commit | 93142642132f71154b474ef01b0ea44fc7cacddd (patch) | |
| tree | d80227495d20d9e5e97ccff7f082272c48790b57 /main | |
| parent | 437dd5940bad6133561cb896cd558881fa5c8b44 (diff) | |
a
Diffstat (limited to 'main')
| -rw-r--r-- | main/loader-impl.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/main/loader-impl.cpp b/main/loader-impl.cpp index 77f96672..bbf077e1 100644 --- a/main/loader-impl.cpp +++ b/main/loader-impl.cpp @@ -75,8 +75,11 @@ std::shared_ptr<tile_atlas> loader_impl::tile_atlas(Containers::StringView name, Trade::ImageData2D loader_impl::tile_texture(Containers::StringView filename) { - if(!tga_importer || !tga_importer->openFile(filename)) + if(!tga_importer || !tga_importer->openFile(filename)) { + const auto path = Utility::Path::currentDirectory(); + MESSAGE("note: current working directory: '%s'", path->data()); ABORT("can't open tile image '%s'", filename.cbegin()); + } auto img = tga_importer->image2D(0); if (!img) ABORT("can't allocate tile image for '%s'", filename.cbegin()); |
