galaxian: fixed regression in missing presets

This commit is contained in:
Steven Hugg committed 2026-09-28 13:50:00 +02:00
1 parent 95e98eb0df
commit 84eff0f8ed
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -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.");
+1
View File
@@ -27,6 +27,7 @@ class GalaxianPlatform extends BaseZ80MachinePlatform<GalaxianMachine> implement
class GalaxianScramblePlatform extends GalaxianPlatform implements Platform {
newMachine() { return new GalaxianScrambleMachine(); }
getPresets() { return GALAXIAN_PRESETS; }
}