mirror of
https://codeberg.org/KeybadeBlox/JSRF-Decompilation.git
synced 2026-02-20 18:27:04 +03:00
Update delink.sh for Windows
If you've cloned this repository on Windows, you have either a POSIX environment or Git Bash and can run this script. It just needs to call the right headless Ghidra script depending on the OS (which it now tries to do).
This commit is contained in:
parent
8e62579f34
commit
87c56f01d6
2 changed files with 9 additions and 4 deletions
|
|
@ -50,7 +50,13 @@ delink() {
|
||||||
# $3: Ghidra project name
|
# $3: Ghidra project name
|
||||||
# $4: Whitespace-separated address ranges to include in object
|
# $4: Whitespace-separated address ranges to include in object
|
||||||
# $5: Output path (inside /target)
|
# $5: Output path (inside /target)
|
||||||
"$1/support/analyzeHeadless" "$2" "$3"\
|
# Call the right script depending on whether we're on Windows
|
||||||
|
# (this seems like the most reliable method I can find for POSIX sh)
|
||||||
|
if [ -n "$WINDIR" ]; then suffix=.bat
|
||||||
|
else suffix=
|
||||||
|
fi
|
||||||
|
|
||||||
|
"$1/support/analyzeHeadless$suffix" "$2" "$3"\
|
||||||
-process default.xbe\
|
-process default.xbe\
|
||||||
-noanalysis\
|
-noanalysis\
|
||||||
-postScript DelinkProgram.java\
|
-postScript DelinkProgram.java\
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,8 @@ the JSRF decompilation effort.
|
||||||
The addresses given in each section are runtime memory addresses (as one would
|
The addresses given in each section are runtime memory addresses (as one would
|
||||||
see in e.g. Ghidra).
|
see in e.g. Ghidra).
|
||||||
|
|
||||||
`delink.sh` and `delink.ps1` are scripts for Unix-like and Windows systems
|
`delink.sh` is a script that produces delinked object files in `target/` from a
|
||||||
respectively to produced delinked object files in `target/` from a Ghidra
|
Ghidra project.
|
||||||
project.
|
|
||||||
|
|
||||||
The `src/` directory contains decompiled code and data. Each symbol is
|
The `src/` directory contains decompiled code and data. Each symbol is
|
||||||
annotated with its corresponding memory address in the original binary, and
|
annotated with its corresponding memory address in the original binary, and
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue