mirror of
https://github.com/zeldaret/tww.git
synced 2026-07-07 21:30:47 -04:00
Decmp guide: Explain making local copy in Ghidra
This commit is contained in:
@@ -106,7 +106,10 @@ Then wait for an admin to approve your request. Once you have access, you can se
|
||||
* Port Number: 13100
|
||||
* User ID: (the username that you chose earlier)
|
||||
* Password: (the password that you chose earlier)
|
||||
* You should now be able to view the files in the Ghidra project. You should checkout the `main` file.
|
||||
* You should now be able to view the files in the Ghidra project. Checkout the `main` file.
|
||||
* Finally, you should make a local copy of the `main` file in Ghidra. Right click on `main`, select Copy, then right click again and select Paste.
|
||||
* This is so that you will be able to save changes that you make while decompiling, as you don't have write access to change `main` itself.
|
||||
* Additionally, Ghidra has a bug that causes the remote version of `main` to be extremely slow to use if you only have read access, so you should still make a local copy even if you don't intend to change anything. The first checkout of `main` will still be slow, but opening the local copy in the future should be fast.
|
||||
|
||||
Now you have Ghidra set up and ready to use.
|
||||
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@ Once you've chosen which object you want to decompile, you'll usually want to se
|
||||
> [!NOTE]
|
||||
> Some actors that aren't decompiled may have already had their struct defined in our Ghidra server by someone else in the past, in which case you may be able to skip this step. But this is not the case for most actors.
|
||||
|
||||
In objdiff, pick one of the actor's functions (one with "create" in the name would be good to start with). Then open the `main` program in Ghidra, press `G` and type the function name (e.g. `daWall_c::CreateInit`) to go to that function in Ghidra. If the struct hasn't been properly defined for Ghidra, the function may look something like this at first:
|
||||
In objdiff, pick one of the actor's functions (one with "create" in the name would be good to start with). Then in Ghidra, open the local copy of the `main` program you made earlier (do not open `main` itself or you won't be able to save your changes), press `G` and type the function name (e.g. `daWall_c::CreateInit`) to go to that function in Ghidra. If the struct hasn't been properly defined for Ghidra, the function may look something like this at first:
|
||||
|
||||

|
||||
|
||||
|
||||
Reference in New Issue
Block a user