aboutsummaryrefslogtreecommitdiff
path: root/tools/ghidra/ExportAiScriptLoaderStrings.java
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-09-06 04:22:12 +0300
committerValentin Popov <valentin@popov.link>2026-09-06 04:22:12 +0300
commitaa51f3574d3d4d4e0fa59653eedd718fceb5d1bd (patch)
tree9a43f6a3f3c86767e4e2b7316051562d96789f06 /tools/ghidra/ExportAiScriptLoaderStrings.java
parentda03e77f53bb33b2fe203ac45578289953a1b524 (diff)
downloadfparkan-aa51f3574d3d4d4e0fa59653eedd718fceb5d1bd.tar.xz
fparkan-aa51f3574d3d4d4e0fa59653eedd718fceb5d1bd.zip
chore: simplify project to engine docs and tests
Remove planning and acceptance scaffolding while retaining the native Vulkan mission preview, format readers, runtime algorithms, and ordinary Rust tests. Keep the book aligned with the runnable project and validate checked-in shaders without generated tool metadata.
Diffstat (limited to 'tools/ghidra/ExportAiScriptLoaderStrings.java')
-rw-r--r--tools/ghidra/ExportAiScriptLoaderStrings.java27
1 files changed, 0 insertions, 27 deletions
diff --git a/tools/ghidra/ExportAiScriptLoaderStrings.java b/tools/ghidra/ExportAiScriptLoaderStrings.java
deleted file mode 100644
index e1443c7..0000000
--- a/tools/ghidra/ExportAiScriptLoaderStrings.java
+++ /dev/null
@@ -1,27 +0,0 @@
-// Emits path literals used by the GOG AI script loader at 0x10001000.
-// Run headless; the original PE remains read only.
-import ghidra.app.script.GhidraScript;
-import ghidra.program.model.address.Address;
-
-public class ExportAiScriptLoaderStrings extends GhidraScript {
- private static final long[] ADDRESSES = {
- 0x10038a88L, 0x10038a9cL, 0x10038aa4L, 0x10038aacL,
- 0x10038ab4L, 0x10038abcL, 0x10038ad0L, 0x10038ad8L,
- 0x10038ae0L
- };
-
- @Override
- public void run() throws Exception {
- for (long value : ADDRESSES) {
- Address address = currentProgram.getAddressFactory().getDefaultAddressSpace()
- .getAddress(value);
- byte[] bytes = new byte[256];
- int count = currentProgram.getMemory().getBytes(address, bytes);
- StringBuilder text = new StringBuilder();
- for (int index = 0; index < count && bytes[index] != 0; index++) {
- text.append((char) (bytes[index] & 0xff));
- }
- println(address + " = \"" + text + "\"");
- }
- }
-}