diff options
| author | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-23 06:28:03 -0500 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-23 06:28:03 -0500 |
| commit | 561b65a832218fbb9e6d2effd392a8eef093a3f8 (patch) | |
| tree | 039a055a8fb00d648dffcfb82e2f96d143229bf1 /scripts | |
| parent | a4d7182243ddcbe1f729ba0845e2932ee6df7423 (diff) | |
| parent | 3faac557b1584d39004357918e60325b4d4ff0fe (diff) | |
Merge remote-tracking branch 'origin/main' into triage-r44
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
# .github/workflows/runtime.yml
# tests/test_first_look_shim_report.py
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/build_runtime.ps1 | 2 | ||||
| -rw-r--r-- | scripts/first_look.ps1 | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/scripts/build_runtime.ps1 b/scripts/build_runtime.ps1 index a6e331052..0185484a4 100644 --- a/scripts/build_runtime.ps1 +++ b/scripts/build_runtime.ps1 | |||
| @@ -71,7 +71,7 @@ call "$cmake" --build "$out" -j $jobs || exit /b 1 | |||
| 71 | Write-Warning "CMake and Ninja weren't found (neither VS C++ CMake tools nor native PATH tools): building with cl.exe directly, without the GameInput shim (SDL3). Install CMake + Ninja or VS's CMake tools component to get it." | 71 | Write-Warning "CMake and Ninja weren't found (neither VS C++ CMake tools nor native PATH tools): building with cl.exe directly, without the GameInput shim (SDL3). Install CMake + Ninja or VS's CMake tools component to get it." |
| 72 | $xtaskqueueDir = Join-Path $root "third_party\xtaskqueue" | 72 | $xtaskqueueDir = Join-Path $root "third_party\xtaskqueue" |
| 73 | $xtaskqueueFiles = "Source\Task\TaskQueue.cpp", "Source\Task\AsyncLib.cpp", "Source\Task\ThreadPool_win32.cpp", "Source\Task\WaitTimer_win32.cpp" | ForEach-Object { "`"$xtaskqueueDir\$_`"" } | 73 | $xtaskqueueFiles = "Source\Task\TaskQueue.cpp", "Source\Task\AsyncLib.cpp", "Source\Task\ThreadPool_win32.cpp", "Source\Task\WaitTimer_win32.cpp" | ForEach-Object { "`"$xtaskqueueDir\$_`"" } |
| 74 | $files = "src\main.cpp", "src\pe_loader.cpp", "shims\registry.cpp", "shims\file_system.cpp", "shims\xmem.cpp", "shims\d3d12_xs.cpp", "shims\d3d12_xs_device.cpp", "shims\d3d12_xs_rootsig.cpp", "shims\xgameruntime.cpp", "shims\xgameruntime_user.cpp", "shims\winhttp_offline.cpp", "shims\library_loader.cpp", "shims\process.cpp" | ForEach-Object { "`"$src\$_`"" } | 74 | $files = "src\main.cpp", "src\pe_loader.cpp", "shims\registry.cpp", "shims\file_system.cpp", "shims\xmem.cpp", "shims\d3d12_xs.cpp", "shims\d3d12_xs_device.cpp", "shims\d3d12_xs_rootsig.cpp", "shims\xgameruntime.cpp", "shims\xgameruntime_user.cpp", "shims\xgameruntime_gamesave.cpp", "shims\xgameruntime_store.cpp", "shims\xgameruntime_offline.cpp", "shims\winhttp_offline.cpp", "shims\library_loader.cpp", "shims\process.cpp" | ForEach-Object { "`"$src\$_`"" } |
| 75 | $includes = "/I `"$src\src`" /I `"$src\shims`" /I `"$src\shims\xtaskqueue`" /I `"$xtaskqueueDir\Include`" /I `"$xtaskqueueDir\Source\Task`" /I `"$xtaskqueueDir\Source\Common`"" | 75 | $includes = "/I `"$src\src`" /I `"$src\shims`" /I `"$src\shims\xtaskqueue`" /I `"$xtaskqueueDir\Include`" /I `"$xtaskqueueDir\Source\Task`" /I `"$xtaskqueueDir\Source\Common`"" |
| 76 | $opt = if ($Debug) { "/Od /MDd" } else { "/O2 /MD" } | 76 | $opt = if ($Debug) { "/Od /MDd" } else { "/O2 /MD" } |
| 77 | $body = @" | 77 | $body = @" |
diff --git a/scripts/first_look.ps1 b/scripts/first_look.ps1 index 46eef4806..f60ea9e8d 100644 --- a/scripts/first_look.ps1 +++ b/scripts/first_look.ps1 | |||
| @@ -28,6 +28,17 @@ Write-Host "`n== GDK runtime classes and slots called through xgameruntime.lib ( | |||
| 28 | python -I (Join-Path $root "tools\gdk_runtime_calls.py") $Exe --out $out | 28 | python -I (Join-Path $root "tools\gdk_runtime_calls.py") $Exe --out $out |
| 29 | if ($LASTEXITCODE -ne 0) { Write-Warning "gdk_runtime_calls could not read all of $Exe; its report may be incomplete" } | 29 | if ($LASTEXITCODE -ne 0) { Write-Warning "gdk_runtime_calls could not read all of $Exe; its report may be incomplete" } |
| 30 | 30 | ||
| 31 | Write-Host "`n== Archetype lookup candidates for mods (docs/modding.md; pass the top RVA to gta6rt --archetype-lookup)" | ||
| 32 | python -I (Join-Path $root "tools\find_hash_lookup.py") $Exe --json (Join-Path $out "hash_lookup.json") | ||
| 33 | if ($LASTEXITCODE -ne 0) { Write-Warning "find_hash_lookup could not scan $Exe" } | ||
| 34 | |||
| 35 | Write-Host "`n== What to confirm against this executable (every ASSUMPTION / UNVERIFIED / VERIFY note; called ones first)" | ||
| 36 | $calls = Join-Path $out ((Split-Path $Exe -Leaf) + ".gdk_calls.json") | ||
| 37 | $checklistArgs = @("--out", (Join-Path $out "checklist.md")) | ||
| 38 | if (Test-Path $calls) { $checklistArgs += @("--gdk-calls", $calls) } | ||
| 39 | python -I (Join-Path $root "tools\exe_checklist.py") @checklistArgs | ||
| 40 | if ($LASTEXITCODE -ne 0) { Write-Warning "exe_checklist could not write the checklist" } | ||
| 41 | |||
| 31 | $rt = Join-Path $root "runtime\build\gta6rt.exe" | 42 | $rt = Join-Path $root "runtime\build\gta6rt.exe" |
| 32 | $tlsHost = Join-Path $root "runtime\build\gta6rt_tls_host.dll" | 43 | $tlsHost = Join-Path $root "runtime\build\gta6rt_tls_host.dll" |
| 33 | $runtimeFiles = @($rt, $tlsHost) | 44 | $runtimeFiles = @($rt, $tlsHost) |