Files
WT-Offline/native/wto-net/src/hooks.h
T
N0VAN0M4LY b260d2899e chore(battle): snapshot the LocalMP rework baseline
Records the uncommitted battle-session work exactly as it was left
(local service matchmaking, settlement, chat, native LocalMP hooks,
battle gui/exe patches) so the following review and rework commits
show every correction as a diff against this state.

This commit is not reviewed and is known to be incomplete: in-game
testing reported wrong settlement rewards, single-country teams,
missing random/fixed supplement slots, misattributed hit messages and
other regressions. Do not merge this branch before the rework lands.
2026-11-28 03:15:47 +08:00

13 lines
391 B
C

/* Hooks on the system's ws2_32.dll exports. */
#pragma once
#include <winsock2.h>
#include <ws2tcpip.h>
/* Hook one export of the system's ws2_32.dll; *original receives the trampoline. Returns 1 on success. */
int hook_export(const char *name, void *replacement, void **original);
int install_resolver_hooks(void);
int install_connection_hooks(void);
void install_local_mp_hooks(void);