Skip to content

Commit

Permalink
more std::filesystem::path stringifies
Browse files Browse the repository at this point in the history
  • Loading branch information
ab9rf committed Jan 12, 2025
1 parent 7d8a2bc commit f833365
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ContentLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ bool ContentLoader::parseContentIndexFile( std::filesystem::path filepath )
string line;
std::ifstream myfile( filepath );
if (myfile.is_open() == false) {
LogError( "Unable to load config index file at: %s!\n", filepath );
LogError( "Unable to load config index file at: %s!\n", filepath.string().c_str() );
return false;
}
LogVerbose("Reading index at %s...\n", filepath);
Expand Down Expand Up @@ -344,7 +344,7 @@ bool ContentLoader::parseContentXMLFile( std::filesystem::path filepath )
al_flip_display();*/
TiXmlDocument doc( filepath.string().c_str() );
if(!doc.LoadFile()) {
LogError("File load failed: %s\n", filepath);
LogError("File load failed: %s\n", filepath.string().c_str());
return false;
}
TiXmlHandle hDoc(&doc);
Expand Down

0 comments on commit f833365

Please sign in to comment.