summaryrefslogtreecommitdiffhomepage
path: root/loader/loader.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-11-05 00:13:40 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-11-05 01:04:43 +0100
commit3c7cfbc50ce21589b192e1e6d121b2e6df60a7f3 (patch)
tree6fa09e2c064913756ac608df14d5f37630cea0aa /loader/loader.hpp
parentb8627a7d786d53e42dbad87a9eef87589dff0d16 (diff)
ccc2
Diffstat (limited to 'loader/loader.hpp')
-rw-r--r--loader/loader.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/loader/loader.hpp b/loader/loader.hpp
index ce331203..01622820 100644
--- a/loader/loader.hpp
+++ b/loader/loader.hpp
@@ -28,7 +28,7 @@ struct loader_
virtual Trade::ImageData2D texture(StringView prefix, StringView filename) noexcept(false) = 0;
virtual std::shared_ptr<struct tile_atlas> tile_atlas(StringView filename, Vector2ub size, Optional<pass_mode> pass) noexcept(false) = 0;
virtual std::shared_ptr<struct tile_atlas> tile_atlas(StringView filename) noexcept(false) = 0;
- virtual ArrayView<String> anim_atlas_list() = 0;
+ virtual ArrayView<const String> anim_atlas_list() = 0;
virtual std::shared_ptr<struct anim_atlas> anim_atlas(StringView name, StringView dir = ANIM_PATH) noexcept(false) = 0;
static void destroy();
static loader_& default_loader() noexcept;
@@ -38,7 +38,7 @@ struct loader_
virtual StringView startup_directory() noexcept = 0;
static StringView strip_prefix(StringView name);
virtual const vobj_info& vobj(StringView name) = 0;
- virtual ArrayView<struct vobj_info> vobj_list() = 0;
+ virtual ArrayView<const struct vobj_info> vobj_list() = 0;
static StringView make_atlas_path(char(&buf)[FILENAME_MAX], StringView dir, StringView name);
[[nodiscard]] static bool check_atlas_name(StringView name) noexcept;