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; } }