A port of SMW to Android.
Original Repository: https://github.com/snesrev/smw
This is a cobbled together version from Waterdish. Full credit goes to them, I just ported the SMW code over.
You need to put the **smw_assets.dat** file in this directory.
To generate this file from your rom from an Android device, follow the instructions below.
(Alternativelly, you can generate the file from the instructions of the original repository.) **Android/data/net.freyta.smw/files** contains **smw.ini**. Use a text editor to change options.
L3 = Save State
R3 = Load State
Start + R = Save State
Start + L = Load State
Note: Credit to @yeticarus for their touch screen code.
If PyDroid is already installed and configured with Pillow and pyyaml, you can skip this part. Else, do this:
2. Open the hamburger menu at the top left of the app and select Pip.
3. Type in "Pillow" without the quotes and it will have you install the repository app from the app store.
4. Once the repository app is installed, you can install "Pillow" and "pyyaml"
5. Download the source code zip file for smw-android (not the apk release).
6. Extract the zip file.
7. Place your rom file in ./smw-android/app/jni/SMW_SRC/, and rename it to smw.sfc
8. Open PyDroid, open the hamburger menu, and select Terminal.
9. Navigate to where you placed the rom file. (If you are unfamiliar with terminal commands, "ls" lists the folders and files and "cd Foldername" changes the directory.
10. Paste in this command
python3 assets/restool.py --extract-from-rom 11. It should pause for a while and when it finishes you should be able to see smw_assets.dat in the same folder as your rom. You can go ahead and copy that to the Android/data/net.freyta.smw/files location.
If you wish, you can now delete your rom, the sourcecode.zip, the extracted source code, and even uninstall PyDroid (or just Pillow and pyyaml).
Just keep the apk installed with the smw_assets.dat in the correct location. Fixing known issue: pressing B while holding Y used to shortly release Y (You couldn't jump holding a shell).
Now the source code include the fix for secondary entrance issue at data extraction. (snesrev/smw#43)