fix hex
This commit is contained in:
parent
5746dcf1fd
commit
247d0c2352
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user