bba: use `std::filesystem` instead of `boost::filesystem`.

Also, convert paths to UTF-8 for Windows builds. See #1479.
This commit is contained in:
Catherine 2025-05-14 02:18:39 +00:00
parent 46fbe7c6d7
commit 7a821623f0
1 changed files with 2 additions and 2 deletions

View File

@ -19,8 +19,8 @@
*/
#include <assert.h>
#include <boost/filesystem/path.hpp>
#include <boost/program_options.hpp>
#include <filesystem>
#include <iostream>
#include <map>
#include <stdint.h>
@ -452,7 +452,7 @@ int main(int argc, char **argv)
fprintf(fileOut, "%s\n", s.c_str());
fprintf(fileOut, "const uint8_t %s[%d] = {\n", streams[0].name.c_str(), int(data.size()) + 1);
fprintf(fileOut, "#embed \"%s\"\n", boost::filesystem::path(files.at(2)).c_str());
fprintf(fileOut, "#embed \"%s\"\n", std::filesystem::path(files.at(2)).u8string().c_str());
fprintf(fileOut, "};\n");
for (auto &s : postText)