diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-11 03:53:12 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-11 08:49:52 +0100 |
commit | 0de0eb1fe18949a328b9e76a2dbf6319692cc3cb (patch) | |
tree | 069235056b38d320e4693bf1d1b89fbda17c058b /loader/loader.hpp | |
parent | c40f3dc1505439acd34b5fff12ea0a570920f98d (diff) |
wip loader
Diffstat (limited to 'loader/loader.hpp')
-rw-r--r-- | loader/loader.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/loader/loader.hpp b/loader/loader.hpp index 60fda8b6..701f38d7 100644 --- a/loader/loader.hpp +++ b/loader/loader.hpp @@ -3,7 +3,7 @@ #include "src/pass-mode.hpp" #include "loader/policy.hpp" #include <memory> -#include <Corrade/Containers/String.h> +#include <cr/StringView.h> //namespace Magnum { using Vector2ub = Math::Vector2<unsigned char>; } namespace Magnum::Trade { template<uint32_t> class ImageData; using ImageData2D = ImageData<2>; } @@ -44,7 +44,7 @@ struct loader_ static StringView strip_prefix(StringView name); virtual const vobj_cell& vobj(StringView name) = 0; virtual ArrayView<const struct vobj_cell> vobj_list() = 0; - static StringView make_atlas_path(char(&buf)[fm_FILENAME_MAX], StringView dir, StringView name); + static StringView make_atlas_path(char(&buf)[fm_FILENAME_MAX], StringView dir, StringView name, StringView extension = {}); [[nodiscard]] static bool check_atlas_name(StringView name) noexcept; virtual const wall_cell& make_invalid_wall_atlas() = 0; |