-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
94e2bb2
commit 6815521
Showing
13 changed files
with
129 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
XDG_DATA_HOME=${XDG_DATA_HOME:-$HOME/.local/share} | ||
|
||
if [ -d "/opt/system/Tools/PortMaster/" ]; then | ||
controlfolder="/opt/system/Tools/PortMaster" | ||
elif [ -d "/opt/tools/PortMaster/" ]; then | ||
controlfolder="/opt/tools/PortMaster" | ||
elif [ -d "$XDG_DATA_HOME/PortMaster/" ]; then | ||
controlfolder="$XDG_DATA_HOME/PortMaster" | ||
else | ||
controlfolder="/roms/ports/PortMaster" | ||
fi | ||
|
||
source $controlfolder/control.txt | ||
source $controlfolder/device_info.txt | ||
export PORT_32BIT="Y" | ||
|
||
get_controls | ||
[ -f "${controlfolder}/mod_${CFW_NAME}.txt" ] && source "${controlfolder}/mod_${CFW_NAME}.txt" | ||
|
||
$ESUDO chmod 666 /dev/tty0 | ||
|
||
GAMEDIR="/$directory/ports/fnafnes" | ||
|
||
export LD_LIBRARY_PATH="/usr/lib32:$GAMEDIR/libs" | ||
export GMLOADER_DEPTH_DISABLE=1 | ||
export GMLOADER_SAVEDIR="$GAMEDIR/gamedata/" | ||
export GMLOADER_PLATFORM="os_linux" | ||
|
||
# We log the execution of the script into log.txt | ||
exec > >(tee "$GAMEDIR/log.txt") 2>&1 | ||
|
||
cd $GAMEDIR | ||
|
||
if [ -f "${controlfolder}/libgl_${CFWNAME}.txt" ]; then | ||
source "${controlfolder}/libgl_${CFW_NAME}.txt" | ||
else | ||
source "${controlfolder}/libgl_default.txt" | ||
fi | ||
|
||
# Check for file existence before trying to manipulate them: | ||
[ -f "./gamedata/data.win" ] && mv gamedata/data.win gamedata/game.droid | ||
[ -f "./gamedata/game.win" ] && mv gamedata/game.win gamedata/game.droid | ||
[ -f "./gamedata/game.unx" ] && mv gamedata/game.unx gamedata/game.droid | ||
|
||
# Make sure uinput is accessible so we can make use of the gptokeyb controls | ||
$ESUDO chmod 666 /dev/uinput | ||
|
||
$GPTOKEYB "gmloader" -c ./fnafnes.gptk & | ||
|
||
$ESUDO chmod +x "$GAMEDIR/gmloader" | ||
|
||
./gmloader fnafnes.apk | ||
|
||
$ESUDO kill -9 $(pidof gptokeyb) | ||
$ESUDO systemctl restart oga_events & | ||
printf "\033c" > /dev/tty0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
## Notes | ||
|
||
Thanks to Scott Cawthon for making Fnaf | ||
Thanks to [Tai5_5](https://tai5-5.itch.io/fnafnes) for making this demake of fnaf | ||
|
||
## Controls | ||
|
||
| Button | Action | | ||
|--|--| | ||
|Lstick/Dpad|Movement| | ||
|A|Closing/Opening Door| | ||
|B|Light On/Off| | ||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
back = esc | ||
start = enter | ||
|
||
up = up | ||
down = down | ||
left = left | ||
right = right | ||
|
||
left_analog_up = up | ||
left_analog_down = down | ||
left_analog_left = left | ||
left_analog_right = right | ||
|
||
a = a | ||
b = s | ||
x = \" | ||
y = \" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<gameList> | ||
<game> | ||
<path>./FNAF NES.sh</path> | ||
<name>FNAF NES STYLED</name> | ||
<desc>In FNAF NES STYLED, you play as a night security guard at Freddy Fazbear’s Pizza. Your main goal is to survive five nights while being stalked by animatronic characters that come to life at night. You monitor security cameras to track their movements and use limited resources like door controls and lights to protect yourself from being caught. The game is a mix of strategy and horror, requiring you to manage your resources carefully and stay alert to avoid the animatronics. | ||
</desc> | ||
<developer>Tai5_5 and Scott_Cawthon</developer> | ||
<genre>Horror</genre> | ||
<image>./fnafnes/cover.png</image> | ||
</game> | ||
</gameList> |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"version": 3, | ||
"name": "fnafnes.zip", | ||
"items": [ | ||
"FNAF NES.sh", | ||
"fnafnes" | ||
], | ||
"items_opt": [], | ||
"attr": { | ||
"title": "FNAF NES STYLED", | ||
"porter": [ | ||
"Damian2809" | ||
], | ||
"desc": "In FNAF NES STYLED, you play as a night security guard at Freddy Fazbear’s Pizza. Your main goal is to survive five nights while being stalked by animatronic characters that come to life at night. You monitor security cameras to track their movements and use limited resources like door controls and lights to protect yourself from being caught. The game is a mix of strategy and horror, requiring you to manage your resources carefully and stay alert to avoid the animatronics.", | ||
"desc_md": null, | ||
"inst": "Download the game from https://tai5-5.itch.io/fnafnes then put the data.win into fnafnes/gamedata", | ||
"inst_md": null, | ||
"genres": [ | ||
"other" | ||
], | ||
"image": null, | ||
"rtr": false, | ||
"exp": false, | ||
"runtime": null, | ||
"reqs": [], | ||
"arch": [ | ||
"armhf" | ||
], | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.