Merge pull request #7 from AkaiiKitsune/LayeredFS

This commit is contained in:
esuo1198
2024-09-09 22:09:34 +09:00
committed by GitHub
4 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -11,5 +11,5 @@ dist-no-7z: all
@cp -r dist/* out/
dist: dist-no-7z
@cd out && 7zz a -t7z ../dist.7z .
@cd out && 7z a -t7z ../dist.7z .
@rm -rf out
+1
View File
@@ -55,6 +55,7 @@ library(
zlib_proj.get_variable('zlib_lib'),
libtomcrypt.get_variable('tomcryptlib'),
],
link_args : '-Wl,--allow-multiple-definition',
include_directories: [
'src',
minhook.get_variable('minhook_inc'),
+2
View File
@@ -1,6 +1,8 @@
#pragma once
#include <xxhash.h>
#define crcPOLY 0x82f63b78
enum class GameVersion : XXH64_hash_t {
UNKNOWN = 0,
JPN00 = 0x4C07355966D815FB,
+1 -2
View File
@@ -5,7 +5,6 @@
#include "poll.h"
#include <zlib.h>
#include <tomcrypt.h>
#define POLY 0x82f63b78
GameVersion gameVersion = GameVersion::UNKNOWN;
std::vector<HMODULE> plugins;
@@ -38,7 +37,7 @@ uint32_t crc32c(uint32_t crc, const unsigned char *buf, size_t len)
while (len--) {
crc ^= *buf++;
for (k = 0; k < 8; k++)
crc = (crc >> 1) ^ (POLY & (0 - (crc & 1)));
crc = (crc >> 1) ^ (crcPOLY & (0 - (crc & 1)));
}
return ~crc;
}