Skip to content

Commit d61e33a

Browse files
committed
Added PYXEL system
1 parent d3ddd11 commit d61e33a

864 files changed

Lines changed: 413630 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/bin/sh
2+
3+
. /etc/profile
4+
. /etc/os-release
5+
6+
set_kill set "-15 python3"
7+
8+
ondemand
9+
10+
export SDL_GAMECONTROLLERCONFIG="19008d96010000000221000000010000,pixel2_joypad,platform:Linux,x:b2,a:b1,b:b0,y:b3,guide:b14,back:b8,start:b9,dpleft:b12,dpdown:b11,dpright:b13,dpup:b10,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,"
11+
12+
kill_sense &
13+
14+
PYXEL_DIR="/storage/.config/.pyxel"
15+
PYXEL_BIN="/storage/.local/bin/pyxel"
16+
ROM="${1}"
17+
EXTENSION=`echo "${ROM}" | awk -F. '{print $NF}'`
18+
ROMNAME=`basename "${ROM}" | awk -F. '{print $1}'`
19+
20+
if [ "${EXTENSION}" = "py" ]; then
21+
"${PYXEL_BIN}" run "${ROM}"
22+
elif [ "${EXTENSION}" = "pyxapp" ]; then
23+
"${PYXEL_BIN}" play "${ROM}"
24+
elif [ "${EXTENSION}" = "edit" ]; then
25+
mkdir -p "${PYXEL_DIR}"/save
26+
"${PYXEL_BIN}" edit "${PYXEL_DIR}"/save/"${ROMNAME}".pyxres
27+
sync
28+
else
29+
exit 0
30+
fi
31+
32+
pkill -9 kill_sense
33+

EMUELEC/SYSTEM/usr/config/modules/gamelist.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,4 +311,14 @@
311311
<genre>Tool</genre>
312312
<releasedate>2025</releasedate>
313313
</game>
314+
<game>
315+
<path>./pyxel_update.sh</path>
316+
<name>Pyxel update</name>
317+
<developer>Ninoh-FOX</developer>
318+
<publisher>Ninoh-FOX</publisher>
319+
<image>./images/pyxel.png</image>
320+
<rating>0</rating>
321+
<genre>Tool</genre>
322+
<releasedate>2025</releasedate>
323+
</game>
314324
</gameList>
861 Bytes
Loading
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/sh
2+
. /etc/profile
3+
4+
sh -c 'echo -e "\033c" > /dev/tty2'
5+
6+
chvt 2
7+
8+
python3 -m pip install --user --upgrade --no-cache-dir --no-compile --force-reinstall pip > /dev/tty2 2>&1
9+
python3 -m pip install --user --upgrade --no-cache-dir --no-compile --force-reinstall pyxel > /dev/tty2 2>&1
10+
swaymsg exit
11+
sleep 3
12+
swaymsg restart
13+
systemctl restart emustation

EMUELEC/SYSTEM/usr/lib/autostart/common/999-install-storage7z

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,19 @@ cp -f /usr/local/share/emulationstation/es_features.cfg /storage/.config/emulati
112112
cp -f /usr/local/share/emulationstation/es_systems.cfg /storage/.config/emulationstation/es_systems.cfg
113113
cp -f /usr/local/share/emulationstation/runemu.sh /storage/bin/overlay_usr_bin/runemu.sh
114114

115+
#set pyxel
116+
117+
if [ ! -f /storage/.local/bin/pyxel ]
118+
then
119+
cp -r /usr/local/share/pyxel/storage/.* /storage/
120+
chmod +x /storage/.local/bin/* 2>/dev/null
121+
chmod +x /storage/.local/lib/* 2>/dev/null
122+
mkdir /roms/pyxel
123+
cp -r /usr/local/share/pyxel/storage/.local/lib/python3.11/site-packages/pyxel/examples/* /roms/pyxel/
124+
sync
125+
reboot
126+
fi
127+
115128
if [ -f /storage/roms/storageupdate/storage.7z ]
116129
then
117130

0 commit comments

Comments
 (0)