Skip to content
This repository was archived by the owner on Dec 31, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/mod_loader.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "mod_loader.hpp"

ModLoader::open_file_stream_proc oldOpenFileStream = nullptr;
ModLoader::open_file_stream_proc ModLoader::oldOpenFileStream = nullptr;

int ModLoader::pattern_size;
unsigned char* ModLoader::pattern;
Expand Down
5 changes: 3 additions & 2 deletions src/mod_loader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ class ModLoader {
static bool Enable();
static void Disable();

typedef bool(__fastcall* open_file_stream_proc)(__int64 stream, LPCSTR file_path, unsigned int flags);

private:
using open_file_stream_proc = bool(__fastcall*)(uintptr_t stream, LPCSTR file_path, unsigned int flags);

static bool __fastcall HookOpenFileStream(uintptr_t stream, LPCSTR file_path, unsigned int flags);

static open_file_stream_proc oldOpenFileStream;
static int pattern_size;
static unsigned char* pattern;
static unsigned char* mask;
Expand Down
Loading