wto_ws.dll no longer scans aces.exe or carries structure offsets of a game build. It reads the values the patcher resolved (wto_ws.cfg native.* lines) into g_lmp through one table that names, per module, which value fills which field (local_mp_values.c), and installs each module whose values are all present, in dependency order, instead of giving up on the whole bridge when one subsystem is missing. When the settings were resolved for another executable (PE time stamp and image size differ), the bridge stays off. local_mp_offsets.h keeps the existing names so the module code reads as before; only Dagor library layouts (dag::Vector, DataBlock), protocol enums, the reflection buffer size and the two change request members with no reader in the client remain constants. A few fields are derived where the client has no instruction of its own for them (local_mp_values.c derive_values). The signatures moved to patches/native, and the header-based check-offsets command is gone: record-game-version and the launcher's patch check resolve the native modules now. Shared sites moved to local_mp_core (mission customBots, the player's unit eid) so modules do not depend on each other for them. Checked: DLL build (no warnings outside MinHook); root and launcher type checks; check-patches on 2.61.0.37; version records for 2.61.0.37 and 2.61.0.43 (10 native modules each); a lab run of the 2.61.0.37 copy logs 239 native values and "9 of 9 LocalMP modules installed". Battles were not played in this run. BREAKING CHANGE: Rebuild game copies to generate the new native values in wto_ws.cfg. Use record-game-version.ts or the launcher patch check in place of wtotools check-offsets.
16 lines
621 B
C
16 lines
621 B
C
/* Settings (wto_ws.cfg) and the run log (wto_ws.log) next to the DLL. */
|
|
#pragma once
|
|
|
|
#include <winsock2.h>
|
|
#include <ws2tcpip.h>
|
|
#include <stdint.h>
|
|
|
|
void config_load(HMODULE self);
|
|
void log_line(const char *format, ...);
|
|
void describe_address(const struct sockaddr *name, int length, char *text, size_t size);
|
|
|
|
/* A value the build resolved from the executable (wto_ws.cfg "native.<name>="); 0 when absent. */
|
|
int config_native_value(const char *name, int64_t *value);
|
|
/* Whether the settings were resolved for the executable this process runs (PE time stamp and size). */
|
|
int config_native_matches_executable(void);
|