Skip to content

Commit

Permalink
Merge pull request #7 from AkaiiKitsune/LayeredFS
Browse files Browse the repository at this point in the history
  • Loading branch information
esuo1198 authored Sep 9, 2024
2 parents bc4f9ca + f77702f commit 40ab237
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 change: 1 addition & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
2 changes: 2 additions & 0 deletions src/constants.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#pragma once
#include <xxhash.h>

#define crcPOLY 0x82f63b78

enum class GameVersion : XXH64_hash_t {
UNKNOWN = 0,
JPN00 = 0x4C07355966D815FB,
Expand Down
3 changes: 1 addition & 2 deletions src/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include "poll.h"
#include <zlib.h>
#include <tomcrypt.h>
#define POLY 0x82f63b78

GameVersion gameVersion = GameVersion::UNKNOWN;
std::vector<HMODULE> plugins;
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 40ab237

Please sign in to comment.