Restore compatibility with Windows

This commit is contained in:
2023-07-02 21:17:03 +02:00
parent e373badf39
commit 125e19e0be
6 changed files with 28 additions and 105 deletions

View File

@@ -10,7 +10,7 @@ using namespace entt::literals;
Controller::Controller()
{
std::filesystem::path document_path("WaterBottle/glTF-Binary/WaterBottle.glb");
entt::hashed_string document_hash(document_path.c_str());
entt::hashed_string document_hash(document_path.string().c_str());
entt::resource<Gltf> gltf_document =
gltf_cache.load(document_hash, document_path).first->second;