summaryrefslogtreecommitdiffhomepage
path: root/loader
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-02-06 12:04:50 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-02-06 21:40:39 +0100
commit05c67aac26d6042454e5d0503acdb11b2c667176 (patch)
tree30735548917a1b534b538157224d2f20f1e4158c /loader
parent5fa81c74d62fcbfd46d992c38426e952e9eeda4e (diff)
use enum loader_policy (lessen logspam)
Diffstat (limited to 'loader')
-rw-r--r--loader/loader.hpp6
-rw-r--r--loader/policy.hpp10
2 files changed, 11 insertions, 5 deletions
diff --git a/loader/loader.hpp b/loader/loader.hpp
index 5c72a719..a9b1d262 100644
--- a/loader/loader.hpp
+++ b/loader/loader.hpp
@@ -1,6 +1,7 @@
#pragma once
#include "compat/defs.hpp"
#include "src/pass-mode.hpp"
+#include "loader/policy.hpp"
#include <stdio.h>
#include <memory>
#include <Corrade/Containers/String.h>
@@ -29,11 +30,6 @@ struct vobj_info final
std::shared_ptr<anim_atlas> atlas;
};
-enum class loader_policy : uint8_t
-{
- error, warn, ignore, DEFAULT = error,
-};
-
struct loader_
{
virtual StringView shader(StringView filename) noexcept = 0;
diff --git a/loader/policy.hpp b/loader/policy.hpp
new file mode 100644
index 00000000..438b4248
--- /dev/null
+++ b/loader/policy.hpp
@@ -0,0 +1,10 @@
+#pragma once
+
+namespace floormat {
+
+enum class loader_policy : uint8_t
+{
+ error, warn, ignore, DEFAULT = error,
+};
+
+} // namespace floormat