diff --git a/README.MD b/README.MD index 160fdd56..ae5ee4e8 100644 --- a/README.MD +++ b/README.MD @@ -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/*. diff --git a/build.py b/build.py index 3bc5e1a1..8e318fd7 100644 --- a/build.py +++ b/build.py @@ -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: