mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-24 08:41:16 +00:00
51 lines
1.1 KiB
Markdown
51 lines
1.1 KiB
Markdown
# LEGO Island Decompilation Tools
|
|
|
|
These are a set of Python tools for helping with the decomp project
|
|
|
|
## Installing
|
|
Use pip to install the required packages:
|
|
|
|
```
|
|
pip install -r tools/requirements.txt
|
|
```
|
|
|
|
## reccmp
|
|
This is a script to compare the original EXE or DLL with a recpmpiled EXE or DLL, provided a .PDB file
|
|
|
|
## verexp
|
|
This verifies exports by comparing the exports of an original DLL and the recompiled DLL
|
|
|
|
## checkorder
|
|
This checks the order of C++ source and header files to make sure the functions are in order
|
|
|
|
## isledecomp
|
|
This is a library that is used by rhe above scripts. it has a collection of useful classes and functions
|
|
|
|
### Testing
|
|
`isledecomp` has a small suite of tests. Install pylint and run it, passing in the directory:
|
|
|
|
```
|
|
pip install pytest
|
|
pytest tools/isledecomp/tests/
|
|
```
|
|
|
|
## Development
|
|
In order to keep the code clean and consistent, we use `pylint` and `black`:
|
|
|
|
```
|
|
pip install black pylint
|
|
```
|
|
### To run pylint (ignores build and virtualenv):
|
|
```
|
|
pylint tools/ --ignore=build,bin,lib
|
|
```
|
|
|
|
### To check code formatting without rewriting files:
|
|
```
|
|
black --check tools/
|
|
```
|
|
### To apply code formatting:
|
|
```
|
|
black tools/
|
|
```
|