Simplify readme, fix dir hash storage

This commit is contained in:
Cuyler36
2023-12-18 14:56:43 -05:00
parent a98ef5e420
commit ca69425eb6
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -19,7 +19,7 @@ Use `--recursive` when cloning to have ppcdis in the repository.
1. Dump a copy of the game and extract **main.dol** and **foresta.rel.szs**.
2. Decompress **foresta.rel.szs** with yaz0 found in *tools/* (`yaz0 -d foresta.rel.szs foresta.rel`).
3. Rename **main.dol** to **static.dol** and place it and **foresta.rel** in *dump/*.
3. Place **main.dol** and **foresta.rel** in *dump/*.
4. Place **forest_1st.arc** and **forest_2nd.arc** in *dump/*.
5. Download the [CodeWarrior 1.3.2 and 1.2.5n compilers](https://files.decomp.dev/compilers_20230715.zip) and extract them to *tools/1.3.2/* and *tools/1.2.5n/*, respectively.
6. Download the [CodeWarrior 1.3.2r compiler](https://mega.nz/file/WuBFTCLT#TmB5R4-1mEFkk4G1Vjn9_cHXRD9wOIH9CtOLaVSWEas) and extract it to *tools/1.3.2r/*.
@@ -34,7 +34,7 @@ Use `--recursive` when cloning to have ppcdis in the repository.
1. Dump a copy of the game and extract **main.dol** and **foresta.rel.szs**.
2. Decompress **foresta.rel.szs** with yaz0 found in *tools/* (`yaz0 -d foresta.rel.szs foresta.rel`).
3. Rename **main.dol** to **static.dol** and place it and **foresta.rel** in *dump/*.
3. Place **main.dol** and **foresta.rel** in *dump/*.
4. Place **forest_1st.arc** and **forest_2nd.arc** in *dump/*.
5. Download the [CodeWarrior 1.3.2 and 1.2.5n compilers](https://files.decomp.dev/compilers_20230715.zip) and extract them to *tools/1.3.2/* and *tools/1.2.5n/*, respectively.
6. Download the [CodeWarrior 1.3.2r compiler](https://mega.nz/file/WuBFTCLT#TmB5R4-1mEFkk4G1Vjn9_cHXRD9wOIH9CtOLaVSWEas) and extract it to *tools/1.3.2r/*.
+1 -1
View File
@@ -27,7 +27,7 @@ def calculate_directory_hash(path, hash_func):
return hasher.hexdigest()
def directory_changed(path, build_dir, hash_func=hashlib.md5):
hash_file = os.path.join(build_dir, '.dirhash')
hash_file = os.path.join(build_dir, f'{os.path.basename(os.path.normpath(path))}.dirhash')
current_hash = calculate_directory_hash(path, hash_func)
try:
with open(hash_file, 'r') as f: