Skip to content

Commit

Permalink
sync libromfs with upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
tsl0922 committed Mar 4, 2023
1 parent 483c493 commit 1714901
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions third_party/libromfs/generator/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ int main() {
std::printf("libromfs: Resource Folder: %s\n", RESOURCE_LOCATION);

outputFile << "#include <romfs/romfs.hpp>\n\n";
outputFile << "#include <array>\n";
outputFile << "#include <cstdint>\n";
outputFile << "#include <filesystem>\n";
outputFile << "#include <map>\n";
outputFile << "#include <string>\n";
outputFile << "#include <filesystem>\n";
outputFile << "#include <vector>\n";

outputFile << "\n\n";
Expand All @@ -50,7 +52,7 @@ int main() {
auto path = fs::canonical(fs::absolute(entry.path()));
auto relativePath = fs::relative(entry.path(), fs::absolute(RESOURCE_LOCATION));

outputFile << "static std::array<uint8_t, " << entry.file_size() + 1 << "> " << "resource_" LIBROMFS_PROJECT_NAME "_" << identifierCount << " = {\n";
outputFile << "static std::array<std::uint8_t, " << entry.file_size() + 1 << "> " << "resource_" LIBROMFS_PROJECT_NAME "_" << identifierCount << " = {\n";
outputFile << " ";

std::vector<std::byte> bytes;
Expand Down

0 comments on commit 1714901

Please sign in to comment.