Skip to content

Commit

Permalink
sprintf doesn't like std::filesystem::path
Browse files Browse the repository at this point in the history
  • Loading branch information
ab9rf committed Jan 12, 2025
1 parent 67d6232 commit 7d8a2bc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ContentLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,17 +316,17 @@ bool ContentLoader::parseContentIndexFile( std::filesystem::path filepath )
const char* extension;
extension = al_get_path_extension(temppath);
if (strcmp(extension,".xml") == 0) {
LogVerbose("Reading xml %s...\n", configfilepath);
LogVerbose("Reading xml %s...\n", configfilepath.string().c_str());
if (!parseContentXMLFile(configfilepath)) {
LogError("Failure in reading %s\n",configfilepath);
LogError("Failure in reading %s\n",configfilepath.string().c_str());
}
} else if (strcmp(extension,".txt") == 0) {
LogVerbose("Reading index %s...\n", configfilepath);
LogVerbose("Reading index %s...\n", configfilepath.string().c_str());
if (!parseContentIndexFile(configfilepath)) {
LogError("Failure in reading %s\n",configfilepath);
LogError("Failure in reading %s\n",configfilepath.string().c_str());
}
} else {
LogError("Invalid filename: %s\n",configfilepath);
LogError("Invalid filename: %s\n",configfilepath.string().c_str());
}
}
myfile.close();
Expand Down

0 comments on commit 7d8a2bc

Please sign in to comment.