summaryrefslogtreecommitdiffhomepage
path: root/loader
diff options
context:
space:
mode:
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