-
Notifications
You must be signed in to change notification settings - Fork 921
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
start of contribution guide #99
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ttdonovan. Great start of the contribution docs. We can keep evolving these docs as the project progresses.
Added some comments, mostly typos.
CONTRIBUTE.md
Outdated
|
||
## How To... | ||
|
||
Described below are steps for using the IDA and SYM to reverse the Diablo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-and SYM to
+and SYM files to
CONTRIBUTE.md
Outdated
|
||
* A clean installation of Diablo patched to version 1.09b (Diablo.exe) | ||
* Download IDA (Interactive Disassembler) [Hex-Rays](https://www.hex-rays.com/products/ida/support/download_freeware.shtml) | ||
* Download IDC script from sancturary/notes repository: [notes.idc](http://sanctuary.github.io/notes/notes.idc) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-sancturary
+sanctuary
CONTRIBUTE.md
Outdated
Described below are steps for using the IDA and SYM to reverse the Diablo | ||
source. | ||
|
||
### Understanding Devilusion and Sancutary Notes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-Devilusion
+Devilution
-Sancutary
+Sanctuary
CONTRIBUTE.md
Outdated
|
||
### Understanding Devilusion and Sancutary Notes | ||
|
||
Both Devilution and the Sancutary Notes repo have the intended aim to get as |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-Sancutary
+Sanctuary
CONTRIBUTE.md
Outdated
See for instance [drlg_l1_load_dun](http://sanctuary.github.io/notes/#function/drlg_l1_load_dun), | ||
which is defined in `drlg_l1.cpp`. This function has the PSX signature | ||
`void LoadL1Dungeon__FPcii(char *sFileName, int vx, int vy)`, but is documented | ||
in the Sancutary Notes repo as follows for consistency: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-Sancutary
+Sanctuary
CONTRIBUTE.md
Outdated
* Processor type i386 (80386) | ||
* Run the IDC script in IDA on the fresh IDB database to import names for | ||
variables and functions, type definitions, etc. (Note: run the IDC script | ||
only on new IDB databases as it removes all variable names before adding new |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-only
+**only**
to put emphasis that this is an important notice.
CONTRIBUTE.md
Outdated
|
||
### About the SYM | ||
|
||
The diasurgical/scalpel includes a copy of a symbolic file was accidentally |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-The diasurgical/scalpel includes a copy of a symbolic file was accidentally
+The diasurgical/scalpel repository includes a copy of a symbolic file that was accidentally
@galaxyhaxz Would you like to add notes for how to open the Our current notes are as follows,
We should probably extend these steps by mentioning that the same address of the .SYM files may map to more than one function, as only one of From #84 (comment), this could be tidied up a bit and added to the
We may also want to mention how to map global variable accesses relative to $gp, e.g.
|
CONTRIBUTE.md
Outdated
* Function arguments `(char *dun_path, int view_x, int view_y)` | ||
* #TODO whatelse can be inferred from below? | ||
|
||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can probably syntax highlight using asm
I've corrected the typos in the |
Indeed there is a lot to reversing the PSX module. I'll add some more notes on that, and how to annotate function variables based on the symbol file. This is a good start though! |
From this issue #84 I've stated a contribution guide. Feel free to make any changes. Other things that might be useful are screenshots or a video explaining how to reverse an example function.
There are also a couple of
#TODO
s that could use some polishing to further explain concepts.