Edit readme instructions for python (#18)

* Update README.md

* Update BUILDING.md

* Update run_with_tcc.bat

---------

Co-authored-by: snesrev <111028570+snesrev@users.noreply.github.com>
This commit is contained in:
FitzRoyX 2023-07-20 08:50:43 -05:00 committed by GitHub
parent d6ca692a89
commit f4b5839197
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 10 deletions

View File

@ -17,7 +17,7 @@
## Building with Tiny C Compiler
Dependencies and requirements:
* You'll need [TCC](https://github.com/FitzRoyX/tinycc/releases/download/tcc_20230519/tcc_20230519.zip) and [SDL2](https://github.com/libsdl-org/SDL/releases/download/release-2.26.5/SDL2-devel-2.26.5-VC.zip) in order to compile using TCC.
* You'll need [TCC](https://github.com/FitzRoyX/tinycc/releases/download/tcc_20230519/tcc_20230519.zip) and [SDL2](https://github.com/libsdl-org/SDL/releases/download/release-2.28.1/SDL2-devel-2.28.1-VC.zip) in order to compile using TCC.
1. Rename your obtaind Super Mario World rom to `smw.sfc` and place it in the root folder.
2. Unzip both TCC and SDL2 and place them in `third_party` folder.

View File

@ -4,13 +4,14 @@ Our discord server is: https://discord.gg/AJJbJAzNNJ
Early version. It has bugs and the code is messy.
You must self-build for now. Easy method on Windows (no installs, terminal, or big downloads):<br>
(1) Click the green button "Code > Download ZIP" on the github page and extract the ZIP<br>
(2) Place the USA rom named smw.sfc in that folder (crc32=b1ed489)<br>
(3) Download [TCC](https://github.com/FitzRoyX/tinycc/releases/download/tcc_20230519/tcc_20230519.zip) and [SDL2](https://github.com/libsdl-org/SDL/releases/download/release-2.26.5/SDL2-devel-2.26.5-VC.zip) and extract each ZIP into the "third-party" subfolder<br>
(4) Either double-click extract_assets.bat in the main dir or run `python3 assets/restool.py`.<br>
(5) Double-click `run_with_tcc.bat` in the main dir. This will create smw.exe and run it.<br>
(6) Configure with smw.ini<br>
You must self-build for now. Easy method on 64-bit Windows (no terminal or big downloads):<br>
(1) Download [Python](https://www.python.org/ftp/python/3.11.4/python-3.11.4-amd64.exe) if you don't have it and install with "Add to PATH" checked<br>
(2) Click the green button "Code > Download ZIP" on the github page and extract the ZIP<br>
(3) Place your USA rom named smw.sfc in that folder<br>
(4) Download [TCC](https://github.com/FitzRoyX/tinycc/releases/download/tcc_20230519/tcc_20230519.zip) and [SDL2](https://github.com/libsdl-org/SDL/releases/download/release-2.28.1/SDL2-devel-2.28.1-VC.zip) and extract each ZIP into the "third-party" subfolder<br>
(5) Double click "extract_assets.bat" in the main dir. This will create smw_assets.dat.<br>
(6) Double-click "run_with_tcc.bat" in the main dir. This will create smw.exe and run it.<br>
(7) Configure with smw.ini in a text editor like notepad++<br>
For other platforms and compilers, see: https://github.com/snesrev/smw/blob/main/BUILDING.md

View File

@ -1,6 +1,6 @@
@echo off
set SDL2=third_party\SDL2-2.26.5
set SDL2=third_party\SDL2-2.28.1
IF NOT EXIST "third_party\tcc\tcc.exe" (
ECHO:
@ -17,7 +17,7 @@ IF NOT EXIST "third_party\tcc\tcc.exe" (
IF NOT EXIST "%SDL2%\lib\x64\SDL2.dll" (
ECHO:
ECHO ERROR: SDL is not unzipped properly into %SDL2%
ECHO Download it from https://github.com/libsdl-org/SDL/releases/download/release-2.26.5/SDL2-devel-2.26.5-VC.zip
ECHO Download it from https://github.com/libsdl-org/SDL/releases/download/release-2.28.1/SDL2-devel-2.28.1-VC.zip
ECHO:
PAUSE
EXIT /B 1