From 93142642132f71154b474ef01b0ea44fc7cacddd Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 6 Oct 2022 17:37:45 +0200 Subject: a --- main/loader-impl.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'main') 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 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()); -- cgit v1.2.3