ref: 03bf63f40e0fdd56e86dfe5a7c5ce1937ab9127a
parent: f9982dda65852e47bcc80fbf653c6a2f4e09fc15
author: Snesrev <[email protected]>
date: Tue Mar 14 13:21:17 EDT 2023
Switch documentation/Makefile to use restool
--- a/Makefile
+++ b/Makefile
@@ -26,12 +26,9 @@
@echo "Generating Windows resources"
@$(WINDRES) $< -O coff -o $@
-tables/zelda3_assets.dat: tables/dialogue.txt
- @echo "Compiling game resources"
- @cd tables; $(PYTHON) compile_resources.py ../$(ROM)
-tables/dialogue.txt:
+tables/zelda3_assets.dat:
@echo "Extracting game resources"
- @cd tables; $(PYTHON) extract_resources.py ../$(ROM)
+ @cd tables; $(PYTHON) restool.py --extract-from-rom -r ../$(ROM)
clean: clean_obj clean_gen
clean_obj:
--- a/README.md
+++ b/README.md
@@ -51,13 +51,12 @@
2. Extract the ZIP to your hard drive
3. Place the USA rom named `zelda3.sfc` in the "\tables" subfolder
4. Open the command prompt and navigate to that folder
-5. Type `python extract_resources.py` and hit enter
-6. Type `python compile_resources.py` and hit enter
-7. Close the command prompt
-8. Download [TCC](https://github.com/FitzRoyX/tinycc/releases/download/tcc_20221020/tcc_20221020.zip) and extract to the "\third_party" subfolder
-9. Download [SDL2](https://github.com/libsdl-org/SDL/releases/download/release-2.26.3/SDL2-devel-2.26.3-VC.zip) and extract to the "\third_party" subfolder
-10. Double-click `run_with_tcc.bat` in the main dir to create `zelda3.exe` in that same dir
-11. Configure with `zelda3.ini` in the main dir
+5. Type `python restool.py --extract-from-rom` and hit enter
+6. Close the command prompt
+7. Download [TCC](https://github.com/FitzRoyX/tinycc/releases/download/tcc_20221020/tcc_20221020.zip) and extract to the "\third_party" subfolder
+8. Download [SDL2](https://github.com/libsdl-org/SDL/releases/download/release-2.26.3/SDL2-devel-2.26.3-VC.zip) and extract to the "\third_party" subfolder
+9. Double-click `run_with_tcc.bat` in the main dir to create `zelda3.exe` in that same dir
+10. Configure with `zelda3.ini` in the main dir
## Compiling on Windows with Visual Studio (4.5gb IDE and compiler)
Same Steps 1-7 above<br/>