This commit is contained in:
Your Name 2025-05-17 09:04:00 +12:00
parent 5746dcf1fd
commit 247d0c2352

View File

@ -57,6 +57,8 @@ static uint64_t fnv1a_64(const void* data, size_t len) {
if (i + 1 != filedata.size()) cpp << ", ";
}
cpp << "\n};\n";
// Reset to decimal format
cpp << std::dec;
cpp << "static const size_t filedata_len = " << filedata.size() << ";\n";
cpp << "static const char* file_hash = \"" << hash << "\";\n";
cpp << R"cpp(
@ -144,6 +146,8 @@ void generate_folder_code(const std::string& source, const std::string& destfold
if (i + 1 != filedata.size()) cpp << ", ";
}
cpp << "\n};\n";
// Reset to decimal format
cpp << std::dec;
cpp << "static const size_t len_" << var << " = " << filedata.size() << ";\n";
cpp << "static const char* hash_" << var << " = \"" << hash << "\";\n";
cpp << "static const char* rel_" << var << " = \"" << rel << "\";\n";