Skip to content

Read the .gzf by default in reimport-ghidra.ps1 - #412

Merged
gynt merged 1 commit into
mainfrom
gzf-default
Nov 15, 2026
Merged

gynt merged 1 commit into
mainfrom
gzf-default

Conversation

@gynt

@gynt gynt commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #411: reimport-ghidra.ps1 now reads the program from Stronghold Crusader.exe.gzf by default, so a reimport is just

& .\tools\import\reimport-ghidra.ps1 -OverwriteAll $true
  • -Gzf picks a different .gzf. -Sarif "file.sarif" reads a SARIF export instead, as before.
  • -GenerateSarif is dropped, since the SARIF export is no longer needed. gzftosarif.py can still be run by hand, and the README says how.
  • The script stops with an error before moving away the existing headers if the input file does not exist.
  • tools/import/README.md now describes the gzf route first and the SARIF route second.

Checked with -DryRun $true: the default reads the gzf, -Sarif reads the SARIF, and a missing input exits with code 1 before any file is touched.

🤖 Generated with Claude Code

reimport-ghidra.ps1 now reads "Stronghold Crusader.exe.gzf" unless -Sarif
names a SARIF export to read instead. -GenerateSarif is dropped: the SARIF
export is no longer needed, and gzftosarif.py can still be run by hand.
The script now stops before moving away the existing headers when the input
file does not exist.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XmXCmZDK7Sy2VkmmyZnN39
@gynt
gynt merged commit 9af204e into main Nov 15, 2026
5 checks passed
@gynt
gynt deleted the gzf-default branch November 15, 2026 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant