summaryrefslogtreecommitdiffhomepage
path: root/editor/tile-editor.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-11-10 16:04:57 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-11-10 16:04:57 +0100
commit8dfa3d885b34f9d9cc20b47890268cedb9fb217f (patch)
tree208400aa58f825730fc6220dea76eb1780e8122f /editor/tile-editor.cpp
parentb1d66390ca5d11e48f58bb87f49b0f9da5338ca0 (diff)
flush it
Diffstat (limited to 'editor/tile-editor.cpp')
-rw-r--r--editor/tile-editor.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/editor/tile-editor.cpp b/editor/tile-editor.cpp
index 965245a9..2a0e9abc 100644
--- a/editor/tile-editor.cpp
+++ b/editor/tile-editor.cpp
@@ -7,6 +7,7 @@
#include "serialize/json-helper.hpp"
#include "serialize/tile-atlas.hpp"
#include <Corrade/Containers/StringStl.h>
+#include <Corrade/Utility/Path.h>
namespace floormat {
@@ -17,10 +18,10 @@ tile_editor::tile_editor(editor_mode mode, StringView name) : _name{ name}, _mod
void tile_editor::load_atlases()
{
- static const std::filesystem::path image_path{FM_IMAGE_PATH, std::filesystem::path::generic_format};
+ const StringView image_path = FM_IMAGE_PATH;
using atlas_array = std::vector<std::shared_ptr<tile_atlas>>;
const auto filename = _name + ".json";
- for (auto& atlas : json_helper::from_json<atlas_array>(image_path/filename))
+ for (auto& atlas : json_helper::from_json<atlas_array>(Path::join(image_path, filename)))
{
StringView name = atlas->name();
if (auto x = name.findLast('.'); x)