Skip to content

Commit a18518e

Browse files
Add more launchers
1 parent b792949 commit a18518e

10 files changed

Lines changed: 83 additions & 3 deletions

File tree

internal_filesystem/apps/com.micropythonos.doom_launcher/assets/doom_launcher.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
from mpos import Activity, Intent
2-
from launcher_activity import LauncherActivity
2+
from launcher_activity import RetroGoLauncher
33

44

55
class DoomLauncher(Activity):
66

77
def onCreate(self):
88
self.startActivity(
9-
Intent(activity_class=LauncherActivity)
9+
Intent(activity_class=RetroGoLauncher)
1010
.putExtra("title", "Choose your DOOM:")
1111
.putExtra("roms_subdir", "doom")
1212
.putExtra("partition_label", "prboom-go")

internal_filesystem/apps/com.micropythonos.doom_launcher/assets/launcher_activity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from mpos import Activity, Intent, SettingsActivity, SettingActivity, SharedPreferences, TaskManager, sdcard
44

55

6-
class LauncherActivity(Activity):
6+
class RetroGoLauncher(Activity):
77

88
mountpoint_sdcard = "/sdcard"
99
esp32_partition_type_ota_0 = 16
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "Duke Nukem 3D",
3+
"publisher": "MicroPythonOS",
4+
"short_description": "Legendary 3D shooter",
5+
"long_description": "Plays Duke Nukem 3D .grp files from internal storage or SD card. Place them in /roms/duke3d/. Uses ducalex's retro-go port. Supports zipped grp files too.",
6+
"icon_url": "https://apps.micropythonos.com/apps/com.micropythonos.duke_launcher/icons/com.micropythonos.duke_launcher_0.1.0_64x64.png",
7+
"download_url": "https://apps.micropythonos.com/apps/com.micropythonos.duke_launcher/mpks/com.micropythonos.duke_launcher_0.1.0.mpk",
8+
"fullname": "com.micropythonos.duke_launcher",
9+
"version": "0.1.0",
10+
"category": "games",
11+
"activities": [
12+
{
13+
"entrypoint": "assets/duke_launcher.py",
14+
"classname": "DukeLauncher",
15+
"intent_filters": [
16+
{
17+
"action": "main",
18+
"category": "launcher"
19+
}
20+
]
21+
}
22+
]
23+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
from mpos import Activity, Intent
2+
from launcher_activity import RetroGoLauncher
3+
4+
5+
class DukeLauncher(Activity):
6+
7+
def onCreate(self):
8+
self.startActivity(
9+
Intent(activity_class=RetroGoLauncher)
10+
.putExtra("title", "Choose your DUKE NUKEM 3D:")
11+
.putExtra("roms_subdir", "duke3d")
12+
.putExtra("partition_label", "duke3d-go")
13+
.putExtra("boot_name", "duke3d")
14+
.putExtra("game_name", "Duke Nukem 3D")
15+
.putExtra("file_extensions", (".grp", ".zip"))
16+
)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../com.micropythonos.doom_launcher/assets/launcher_activity.py
8.44 KB
Loading
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "NES Launcher",
3+
"publisher": "MicroPythonOS",
4+
"short_description": "Classic 8-bit games",
5+
"long_description": "Plays NES ROMs (.nes, .fc, .fds, .nsf) from internal storage or SD card. Place them in /roms/nes/. Uses ducalex's retro-go port. Supports zipped ROMs too.",
6+
"icon_url": "https://apps.micropythonos.com/apps/com.micropythonos.nes_launcher/icons/com.micropythonos.nes_launcher_0.1.0_64x64.png",
7+
"download_url": "https://apps.micropythonos.com/apps/com.micropythonos.nes_launcher/mpks/com.micropythonos.nes_launcher_0.1.0.mpk",
8+
"fullname": "com.micropythonos.nes_launcher",
9+
"version": "0.1.0",
10+
"category": "games",
11+
"activities": [
12+
{
13+
"entrypoint": "assets/nes_launcher.py",
14+
"classname": "NesLauncher",
15+
"intent_filters": [
16+
{
17+
"action": "main",
18+
"category": "launcher"
19+
}
20+
]
21+
}
22+
]
23+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../com.micropythonos.doom_launcher/assets/launcher_activity.py
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
from mpos import Activity, Intent
2+
from launcher_activity import RetroGoLauncher
3+
4+
5+
class NesLauncher(Activity):
6+
7+
def onCreate(self):
8+
self.startActivity(
9+
Intent(activity_class=RetroGoLauncher)
10+
.putExtra("title", "Choose your NES ROM:")
11+
.putExtra("roms_subdir", "nes")
12+
.putExtra("partition_label", "retro-core")
13+
.putExtra("boot_name", "nes")
14+
.putExtra("game_name", "NES")
15+
.putExtra("file_extensions", (".nes", ".fc", ".fds", ".nsf", ".zip"))
16+
)
8.36 KB
Loading

0 commit comments

Comments
 (0)