Patch definitions under exe-patches/ and gui-patches/ move from patch.json/locate.json to patch.jsonc/locate.jsonc. Each file now holds only the data needed to apply the patch plus a short English comment stating what it changes, why the local service cannot provide it, and what happens without it. Every definition records the game versions it was verified on (verified_on, required). GUI patches keep their stock text and replacement in find.nut and replace.nut next to patch.jsonc instead of escaped JSON strings, so the script edits are readable, diffable and can carry Quirrel comments. Matching treats CRLF and LF as the same line break because stock scripts mix both; only the matched span is rewritten. Loaders on both sides (packages/build, packages/exepatch, wtotools) reject unknown keys so analysis text cannot creep back into the data. JSONC parsing moves into a shared @wto/jsonc package; the build now parses tuning/store.jsonc instead of scanning it with a regex. Verified: npm run typecheck; check-patches (10/10 ready on 2.61.0.37); check-gui (33 patches, 24 scripts compile); the TypeScript and Python appliers produce identical scripts, byte-identical to the previous definitions except one stock script with mixed line endings. The 15 battle patches are migrated mechanically and still carry the pending-review comment; they are rewritten by the LocalMP review. BREAKING CHANGE: Patch loaders require JSONC definitions. Migrate patch.json and locate.json and move embedded GUI edits to separate Quirrel files.
24 lines
895 B
JSON
24 lines
895 B
JSON
// Use HKCU\Software\WTOffline instead of Software\Gaijin\WarThunder.
|
|
// Why the executable: the registry path is a constant in the game identity table.
|
|
// Without it: the offline login reads and overwrites the retail client's saved credentials.
|
|
{
|
|
"id": "isolation/registry-key",
|
|
"title": "把注册表位置从 Software\\Gaijin\\WarThunder 改成 Software\\WTOffline,不碰正版保存的登录信息",
|
|
"features": [
|
|
"A-与正版隔离"
|
|
],
|
|
"requires": [],
|
|
"verified_on": [
|
|
"2.61.0.37"
|
|
],
|
|
"edit": {
|
|
"offset": 0,
|
|
"data": {
|
|
"encoding": "utf-16-le",
|
|
"text": "Software\\WTOffline"
|
|
},
|
|
"bytes": "53006f006600740077006100720065005c00570054004f00660066006c0069006e006500000000000000000000000000000000000000",
|
|
"expect_original": "53006f006600740077006100720065005c004700610069006a0069006e005c005700610072005400680075006e006400650072000000"
|
|
}
|
|
}
|