Fixes stupid windows shit (std::filesystem::path -> std::string)

This commit is contained in:
2024-01-23 12:01:26 -05:00
parent f096f39fe2
commit 22bb451c3e

View File

@@ -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 )
{