Update File Type - Bundle Database

Lucas Schwiderski 2024-07-12 13:10:51 +02:00
parent cac4a7cb6d
commit 0e69f14466

@ -73,4 +73,26 @@ typedef struct {
} BundleContents;
BundleContents contents[num_contents] <optimize=false>;
```
Algorithm to calculate resource hashes by WhiteGoat:
```cpp
uint64_t calc_hash(const std::vector<uint64_t>& list) {
const uint64_t m = 0xc6a4a7935bd1e995ULL;
const int r = 47;
uint64_t k = 0;
for (auto&& name : list) {
uint64_t h = name;
k *= m;
k ^= k >> r;
k *= m;
h ^= k;
k = m * h;
}
return k;
}
```