Merge pull request #7 from AkaiiKitsune/LayeredFS
This commit is contained in:
commit
40ab2372bb
2
Makefile
2
Makefile
@ -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
|
||||
|
@ -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'),
|
||||
|
@ -1,6 +1,8 @@
|
||||
#pragma once
|
||||
#include <xxhash.h>
|
||||
|
||||
#define crcPOLY 0x82f63b78
|
||||
|
||||
enum class GameVersion : XXH64_hash_t {
|
||||
UNKNOWN = 0,
|
||||
JPN00 = 0x4C07355966D815FB,
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user