Skip to content

yeticarus/smw-android

 
 

Repository files navigation

smw-android

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.

Instructions:

Running the app once will create the directory **Android/data/net.freyta.smw/files**.
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.)

How to Change Settings:

**Android/data/net.freyta.smw/files** contains **smw.ini**. Use a text editor to change options.

Default Settings for gamepad:

L3 = Save State
R3 = Load State

Default Settings for touch screen:

Start + R = Save State
Start + L = Load State

Note: Credit to @yeticarus for their touch screen code.

Instructions for creating smw_assets.dat on Android:

If PyDroid is already installed and configured with Pillow and pyyaml, you can skip this part. Else, do this:

1. Download PyDroid: https://play.google.com/store/apps/details?id=ru.iiec.pydroid3&hl=en_US. Choose to skip any options that ask for money, you can do all of the following steps without paying.
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"

Then,

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.

Cleaning

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.

Changelog

Version 1.1.0

Fixing known issue: pressing B while holding Y used to shortly release Y (You couldn't jump holding a shell).

Version 1.0.2

Now the source code include the fix for secondary entrance issue at data extraction. (snesrev/smw#43)

About

A port of SMW to Android

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 65.2%
  • C++ 28.2%
  • Objective-C 1.7%
  • Shell 1.6%
  • Java 1.0%
  • M4 0.9%
  • Other 1.4%