From 22bb451c3eddf919cd6fdeee41853a5caa5c5c3b Mon Sep 17 00:00:00 2001 From: kj16609 Date: Tue, 23 Jan 2024 12:01:26 -0500 Subject: [PATCH] Fixes stupid windows shit (std::filesystem::path -> std::string) --- src/engine/Model.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/Model.cpp b/src/engine/Model.cpp index 1f64ac2..e629c40 100644 --- a/src/engine/Model.cpp +++ b/src/engine/Model.cpp @@ -171,12 +171,12 @@ namespace fgl::engine loader.RemoveImageLoader(); - loader.LoadASCIIFromFile( &model, &err, &warn, filepath ); + loader.LoadASCIIFromFile( &model, &err, &warn, filepath.string() ); if ( !err.empty() ) throw std::runtime_error( err ); if ( !warn.empty() ) - std::cout << "Warning while loading model \"" << filepath << "\"\nWarning:" << warn << std::endl; + std::cout << "Warning while loading model \"" << filepath.string() << "\"\nWarning:" << warn << std::endl; for ( const tinygltf::Mesh& mesh : model.meshes ) {