Skip to content

Algiuxs/sm64-port-android

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go checkout the original sm64-android port VDavid003 port.

sm64ex Android Port

If you want to compile Super Mario 64 for Android on PC you'll probably want to clone this repo instead! If you want to compile on Android using Termux, follow these instructions in Termux:

Termux Update

pkg update
pkg upgrade
pkg install x11-repo
pkg update

Install dependencies:

pkg install git wget make python getconf zip nano apksigner clang which mesa-dev binutils

Clone the repository:

git clone https://github.com/Algiuxs/sm64-port-android --branch ex/nightly
cd sm64-port-android

Copy in your baserom:

Do this using your default file manager (on AOSP, you can slide on the left and there will be a "Termux" option there), or using Termux

termux-setup-storage
cp /sdcard/path/to/your/baserom.z64 ./baserom.us.z64

Get SDL includes:

./getSDL.sh

Patches(optional):

60fps patch:

tools/apply_patch.sh enhancements/60fps_ex.patch

DynOS 1.0 patch:

tools/apply_patch.sh enhancements/DynOS.1.0.patch

To Revert Patch:

tools/revert_patch.sh enhancements/(PATCH NAME HERE).patch

Enhancements

if you want enhancements, you need to modify the near the top parameters of Makefile manually or by adding arguments to make command:

nano Makefile

Build:

# if you have more cores available, you can increase the --jobs parameter
#this will throw an error, but don't worry, it's supposed to do that
make --jobs 4
cd tools/audiofile
make -j 4
cd ../..
make -j 4

Enjoy your apk:

ls -al build/us_pc/sm64.us.f3dex2e.apk

sm64ex

Fork of sm64-port/sm64-port with additional features.

Feel free to report bugs and contribute, but remember, there must be no upload of any copyrighted asset. Run ./extract_assets.py --clean && make clean or make distclean to remove ROM-originated content.

Please contribute first to the nightly branch. New functionality will be merged to master once they're considered to be well-tested.

Read this in other languages: Español, Português or 简体中文.

New features

  • Options menu with various settings, including button remapping.
  • Optional external data loading (so far only textures and assembled soundbanks), providing support for custom texture packs.
  • Optional analog camera and mouse look (using Puppycam).
  • Optional OpenGL1.3-based renderer for older machines, as well as the original GL2.1, D3D11 and D3D12 renderers from Emill's n64-fast3d-engine.
  • Option to disable drawing distances.
  • Optional model and texture fixes (e.g. the smoke texture).
  • Skip introductory Peach & Lakitu cutscenes with the --skip-intro CLI option
  • Cheats menu in Options (activate with --cheats or by pressing L thrice in the pause menu).
  • Support for both little-endian and big-endian save files (meaning you can use save files from both sm64-port and most emulators), as well as an optional text-based save format.

Recent changes in Nightly have moved the save and configuration file path to %HOMEPATH%\AppData\Roaming\sm64ex on Windows and $HOME/.local/share/sm64ex on Linux. This behaviour can be changed with the --savepath CLI option. For example --savepath . will read saves from the current directory (which not always matches the exe directory, but most of the time it does); --savepath '!' will read saves from the executable directory.

Building

For building instructions, please refer to the wiki.

Make sure you have MXE first before attempting to compile for Windows on Linux and WSL. Follow the guide on the wiki.

Packages

No packages published

Languages

  • C 93.5%
  • C++ 4.6%
  • Assembly 1.2%
  • Python 0.6%
  • Makefile 0.1%
  • Shell 0.0%