Skip to content

Commit

Permalink
Package Steward Fu's SuperMario64 port
Browse files Browse the repository at this point in the history
  • Loading branch information
erazemk committed May 11, 2022
1 parent 7c081f1 commit e5cbe61
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ a custom launcher for the Miyoo Mini.
- [2048](2048.pak)
- [Gmu](Gmu.pak)
- [Parasyte](Parasyte.pak)
- [Super Mario 64](SuperMario64.pak)
- [VVVVVV](VVVVVV.pak)
35 changes: 35 additions & 0 deletions SuperMario64.pak/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# MiniUI Apps - Super Mario 64

[Steward Fu](https://github.com/steward-fu)'s port of Super Mario 64.

Source: https://github.com/steward-fu/miyoo-mini/releases (find `sm64p_<date>.zip`)

*Keep in mind that the Mini doesn't support Nintendo 64, so the performance is pretty bad.*

## Screenshots

| In-game |
|:---------------------------------------------------:|
| ![SuperMario64 - In-game](res/SuperMario64_000.png) |

## Installation

**Steward Fu's ports require [Parasyte](../Parasyte.pak), make sure you have it installed!**

## Pre-packaged

1. **Install [Parasyte](../Parasyte.pak)**
2. Download the latest version from Github: https://github.com/erazemk/MiniUI-Apps/releases
3. Extract the archive and move the `SuperMario64.pak` directory to your SD card,
to the `Tools` directory (create it if it doesn't exist already)

## Manually packaged

1. Download [Steward Fu's sm64p](https://github.com/steward-fu/miyoo-mini/releases)
(find `sm64p_<date>.zip`)
2. Extract the archive, go into the directory and rename the `sm64p` directory to `sm64p.pak`
3. Delete the png file and config.json
4. Replace the existing `launch.sh` file with the one from this repository
(https://raw.githubusercontent.com/erazemk/MiniUI-Apps/main/SuperMario64.pak/launch.sh)
5. Move the `SuperMario64.pak` directory to your SD card, to the `Tools` directory
(create it if it doesn't exist already)
26 changes: 26 additions & 0 deletions SuperMario64.pak/launch.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/sh

DIR=$(dirname "$0")
PARASYTE="/mnt/SDCARD/.system/paks/Parasyte.pak/rootfs"

export HOME=$DIR
export PATH=$DIR:$PARASYTE/usr/local/sbin:$PARASYTE/usr/local/bin:$PARASYTE/usr/sbin:$PARASYTE/usr/bin:$PARASYTE/sbin:$PARASYTE/bin:$PATH
export LD_LIBRARY_PATH=$DIR/lib:$PARASYTE/lib:$PARASYTE/usr/lib:$LD_LIBRARY_PATH
export SDL_VIDEODRIVER=mmiyoo
export SDL_AUDIODRIVER=mmiyoo
export EGL_VIDEODRIVER=mmiyoo
echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

cd "$DIR" || exit

# Launch a menu, explaining to the user that the game won't be auto-saved
if [ ! -f ./initial-warning-done ]; then
show okay.png
say "SM64p is a standalone app,"$'\n'" IT WILL NOT BE AUTO-SAVED"$'\n'"when powering off!"$'\n'
confirm only
touch ./initial-warning-done
fi

swapon ./ram.img
./sm64.us.f3dex2e > "$LOGS_PATH"/SM64p.txt 2>&1
swapoff ./ram.img
Binary file added SuperMario64.pak/res/SuperMario64_000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e5cbe61

Please sign in to comment.