Skip to content

Commit

Permalink
[補足]moddableは"4.1"
Browse files Browse the repository at this point in the history
  • Loading branch information
KuraZuzu committed Apr 16, 2024
1 parent 08484d4 commit b94c707
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions firmware/stackchan/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ async function main() {
trace(`WiFi connection failed: ${msg}`)
})
let { onRobotCreated, onLaunch } = defaultMod
// if (Modules.has('mod')) {
// const mod = Modules.importNow('mod') as StackchanMod
// onRobotCreated = mod.onRobotCreated ?? onRobotCreated
// onLaunch = mod.onLaunch ?? onLaunch
// }
if (Modules.has('mod')) {
const mod = Modules.importNow('mod') as StackchanMod
onRobotCreated = mod.onRobotCreated ?? onRobotCreated
onLaunch = mod.onLaunch ?? onLaunch
}
trace('Kurasawa changed TX7 RX6')
const shouldRobotCreate = await onLaunch?.()
if (shouldRobotCreate !== false) {
Expand Down

0 comments on commit b94c707

Please sign in to comment.