From 84eff0f8ed604c90158e5d3eb3d4f02fc3d8e2bf Mon Sep 17 00:00:00 2001 From: Steven Hugg Date: Mon, 28 Sep 2026 13:50:00 +0200 Subject: [PATCH] galaxian: fixed regression in missing presets --- src/ide/ui.ts | 2 +- src/platform/galaxian.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ide/ui.ts b/src/ide/ui.ts index 7982607a..aff5f82a 100644 --- a/src/ide/ui.ts +++ b/src/ide/ui.ts @@ -2327,7 +2327,7 @@ async function startPlatform() { // try to load last file (redirect) var lastid = userPrefs.getLastPreset(); // load first preset file, unless we're in a repo - var defaultfile = lastid || (repo_id ? null : PRESETS[0].id); + var defaultfile = lastid || (repo_id ? null : (PRESETS[0] && PRESETS[0].id)); qs.file = defaultfile || 'DEFAULT'; if (!defaultfile) { alertError("There is no default main file for this project. Try selecting one from the pulldown."); diff --git a/src/platform/galaxian.ts b/src/platform/galaxian.ts index aedd95d0..85894d09 100644 --- a/src/platform/galaxian.ts +++ b/src/platform/galaxian.ts @@ -27,6 +27,7 @@ class GalaxianPlatform extends BaseZ80MachinePlatform implement class GalaxianScramblePlatform extends GalaxianPlatform implements Platform { newMachine() { return new GalaxianScrambleMachine(); } + getPresets() { return GALAXIAN_PRESETS; } }