You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Doom app: starting doom works
This commit is contained in:
@@ -7,8 +7,8 @@ class Doom(Activity):
|
||||
retrogodir = "/retro-go"
|
||||
configdir = retrogodir + "/config"
|
||||
bootfile = configdir + "/boot.json"
|
||||
#partition_label = "prboom-go"
|
||||
partition_label = "retro-core"
|
||||
partition_label = "prboom-go"
|
||||
#partition_label = "retro-core"
|
||||
# Widgets:
|
||||
status_label = None
|
||||
|
||||
@@ -42,20 +42,12 @@ class Doom(Activity):
|
||||
import json
|
||||
# Would be better to only write this if it differs from what's already there:
|
||||
fd = open(self.bootfile, 'w')
|
||||
'''
|
||||
bootconfig = {
|
||||
"BootName": "doom",
|
||||
"BootArgs": f"/sd{wadfile}",
|
||||
"BootSlot": -1,
|
||||
"BootFlags": 0
|
||||
}
|
||||
'''
|
||||
bootconfig = {
|
||||
"BootName": "nes",
|
||||
"BootArgs": "/sd/roms/nes/homebrew/Yun.zip",
|
||||
"BootSlot": -1,
|
||||
"BootFlags": 0
|
||||
}
|
||||
json.dump(bootconfig, fd)
|
||||
fd.close()
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user