fix(isolation): skip package validation and block official launcher spawns
Add -skip_pkg_validation to the shared offline launch arguments so aces.exe skips the startup content/warthunder.blk file-size check, and add the isolation/never-launch-official-launcher exe patch to NOP the os_shell_execute call in the official launcher spawner while preserving its exit logging and ExitProcess(1).
This commit is contained in:
1 parent
82ec1c47ff
commit
de9ba52b85
3 files changed
+45
-2
No files matched your search
@@ -73,7 +73,7 @@ AI 的驾驶、寻路和战术使用游戏自带的 AI,目前仍有明显不
|
||||
|
||||
- **服务地址**:`config/network.blk`(`char.vromfs.bin`)和 `config/settings.blk`(`aces.vromfs.bin`)中所有 Gaijin 地址改写为 `127.0.0.1:<端口>`。端口在构建时写入,因此服务器必须使用相同的端口。
|
||||
- **配置表**:开启离线需要的功能开关,放出隐藏载具,写入贴花索引,为本地商店的礼包登记 GUID。
|
||||
- **exe 补丁**:`patches/exe/` 下共 12 项,见下表。
|
||||
- **exe 补丁**:`patches/exe/` 下共 13 项,见下表。
|
||||
- **界面脚本补丁**:`patches/gui/` 下共 40 项,用于本地账号注册、本地对局的开局与结算、本地商店的购买回执,以及库存签名公钥等。
|
||||
- **网络钩子库**:exe 的导入表把 `WS2_32.dll` 改为同长度的 `wto_ws.dll`。该库转发系统 `ws2_32.dll` 的全部导出,并用 MinHook 挂钩域名解析(`getaddrinfo` 等)、连接(`connect`、`ConnectEx` 等)和 UDP 发送,把所有外部连接重定向到本地服务器端口。端口从 exe 旁的 `wto_ws.cfg` 读取。
|
||||
|
||||
@@ -84,6 +84,7 @@ AI 的驾驶、寻路和战术使用游戏自带的 AI,目前仍有明显不
|
||||
| `isolation/registry-key` | 注册表位置改为 `Software\WTOffline` |
|
||||
| `isolation/never-load-battleye` | 不加载 BattlEye |
|
||||
| `isolation/never-upload-crash-reports` | 不上传崩溃报告 |
|
||||
| `isolation/never-launch-official-launcher` | 不拉起官方启动器 `launcher.exe` |
|
||||
| `online/network-hook-library` | 加载 `wto_ws.dll` 代替 `WS2_32.dll` |
|
||||
| `online/accept-local-tls-certificate` | 让 libcurl 接受本地服务器的自签名证书 |
|
||||
| `online/matching-server-public-key` | 匹配服务器公钥替换为本地服务器的公钥,用于解出会话密钥 |
|
||||
@@ -333,7 +334,7 @@ Static data such as vehicles, tech trees, prices, and reward factors is extracte
|
||||
|
||||
- **Service addresses**: every Gaijin address in `config/network.blk` (`char.vromfs.bin`) and `config/settings.blk` (`aces.vromfs.bin`) is rewritten to `127.0.0.1:<port>`. The port is written at build time, so the server must use the same port.
|
||||
- **Config tables**: enables feature flags the offline copy needs, reveals hidden vehicles, adds a decal index, and registers GUIDs for local store packs.
|
||||
- **exe patches**: 12 patches under `patches/exe/`, listed below.
|
||||
- **exe patches**: 13 patches under `patches/exe/`, listed below.
|
||||
- **UI script patches**: 40 patches under `patches/gui/`, covering local account registration, battle start and settlement, store purchase receipts, and the inventory signing key.
|
||||
- **Network hook library**: the import table entry `WS2_32.dll` is renamed to `wto_ws.dll`, which has the same length. The library forwards every export of the system `ws2_32.dll` and uses MinHook to hook name resolution (`getaddrinfo` and others), connections (`connect`, `ConnectEx`, and others), and UDP sends, redirecting every external connection to the local server port. The port is read from `wto_ws.cfg` next to the exe.
|
||||
|
||||
@@ -344,6 +345,7 @@ Static data such as vehicles, tech trees, prices, and reward factors is extracte
|
||||
| `isolation/registry-key` | Moves registry settings to `Software\WTOffline` |
|
||||
| `isolation/never-load-battleye` | Never loads BattlEye |
|
||||
| `isolation/never-upload-crash-reports` | Never uploads crash reports |
|
||||
| `isolation/never-launch-official-launcher` | Never launches the official `launcher.exe` |
|
||||
| `online/network-hook-library` | Loads `wto_ws.dll` instead of `WS2_32.dll` |
|
||||
| `online/accept-local-tls-certificate` | Makes libcurl accept the local server's self-signed certificate |
|
||||
| `online/matching-server-public-key` | Replaces the matching server public key with the local server's, so it can decrypt the session key |
|
||||
|
||||
Reference in new issue
Block a user