summaryrefslogtreecommitdiffhomepage
path: root/loader/loader.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-12-02 16:01:28 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-12-02 18:58:28 +0100
commitdb50c7a6a38eff251a14d57dcb9ae551ffe3a1d6 (patch)
treec7d6aba45e63dbbf94ff0f888d00f9da78093bb7 /loader/loader.hpp
parent08e6c03c2864657ae24faec8dde2389d640aaa23 (diff)
loader, serialize: use more exception handling
Diffstat (limited to 'loader/loader.hpp')
-rw-r--r--loader/loader.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/loader/loader.hpp b/loader/loader.hpp
index 458bf34d..8883ed8a 100644
--- a/loader/loader.hpp
+++ b/loader/loader.hpp
@@ -14,15 +14,15 @@ struct scenery_proto;
struct loader_
{
- virtual StringView shader(StringView filename) = 0;
- virtual std::shared_ptr<struct tile_atlas> tile_atlas(StringView filename, Vector2ub size) = 0;
+ virtual StringView shader(StringView filename) noexcept = 0;
+ virtual std::shared_ptr<struct tile_atlas> tile_atlas(StringView filename, Vector2ub size) noexcept(false) = 0;
virtual ArrayView<String> anim_atlas_list() = 0;
- virtual std::shared_ptr<struct anim_atlas> anim_atlas(StringView name, StringView dir = ANIM_PATH) = 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;
static std::vector<std::shared_ptr<struct tile_atlas>> tile_atlases(StringView filename);
virtual const std::vector<serialized_scenery>& sceneries() = 0;
- virtual const scenery_proto& scenery(StringView name) = 0;
+ virtual const scenery_proto& scenery(StringView name) noexcept(false) = 0;
loader_(const loader_&) = delete;
loader_& operator=(const loader_&) = delete;