mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2026-10-24 08:02:27 +00:00
galaxian: fixed regression in missing presets
This commit is contained in:
1 parent
95e98eb0df
commit
84eff0f8ed
2 files changed
+2
-1
No files matched your search
+1
-1
@@ -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.");
|
||||
|
||||
@@ -27,6 +27,7 @@ class GalaxianPlatform extends BaseZ80MachinePlatform<GalaxianMachine> implement
|
||||
class GalaxianScramblePlatform extends GalaxianPlatform implements Platform {
|
||||
|
||||
newMachine() { return new GalaxianScrambleMachine(); }
|
||||
getPresets() { return GALAXIAN_PRESETS; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user