mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2024-11-29 14:51:17 +00:00
fixed typescript 'finally' error
This commit is contained in:
parent
7a7c3d7255
commit
acc05564a1
@ -339,11 +339,13 @@ function reloadProject(id:string) {
|
|||||||
gotoNewLocation();
|
gotoNewLocation();
|
||||||
}
|
}
|
||||||
|
|
||||||
function getSkeletonFile(fileid:string) : Promise<string> {
|
async function getSkeletonFile(fileid:string) : Promise<string> {
|
||||||
var ext = platform.getToolForFilename(fileid);
|
var ext = platform.getToolForFilename(fileid);
|
||||||
return $.get( "presets/"+getBasePlatform(platform_id)+"/skeleton."+ext, 'text').catch((e) => {
|
try {
|
||||||
|
return await $.get( "presets/"+getBasePlatform(platform_id)+"/skeleton."+ext, 'text');
|
||||||
|
} catch(e) {
|
||||||
alertError("Could not load skeleton for " + platform_id + "/" + ext + "; using blank file");
|
alertError("Could not load skeleton for " + platform_id + "/" + ext + "; using blank file");
|
||||||
});
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function checkEnteredFilename(fn : string) : boolean {
|
function checkEnteredFilename(fn : string) : boolean {
|
||||||
|
@ -7,9 +7,12 @@ import { hex, rgb2bgr, lzgmini, stringToByteArray } from "../common/util";
|
|||||||
|
|
||||||
// http://metopal.com/projects/ballybook/doku.php
|
// http://metopal.com/projects/ballybook/doku.php
|
||||||
|
|
||||||
// TODO: fix keys, more controllers, vibrato/noise, border color, debug info, rotate
|
// TODO: fix keys, more controllers, vibrato/noise, border color
|
||||||
// http://atariage.com/forums/topic/251416-programming-the-bally-arcadeastrocade/
|
// http://atariage.com/forums/topic/251416-programming-the-bally-arcadeastrocade/
|
||||||
// https://ballyalley.com/faqs/BPA%20Video%20Hardware%20FAQ/Bally_Professional_Arcade_Video_Hardware%20(2001)(Tony%20Miller).pdf
|
// https://ballyalley.com/faqs/BPA%20Video%20Hardware%20FAQ/Bally_Professional_Arcade_Video_Hardware%20(2001)(Tony%20Miller).pdf
|
||||||
|
// https://atariage.com/forums/topic/290858-notes-from-a-2019-interview-with-jamie-fenton/ (http://www.fentonia.com/bio/)
|
||||||
|
// https://thehistoryofhowweplay.wordpress.com/2018/04/03/interview-tom-mchugh/
|
||||||
|
// https://ballyalley.com/faqs/Programmers%20of%20the%20Astrocade%20Built-In%20Programs.txt
|
||||||
|
|
||||||
const ASTROCADE_KEYCODE_MAP = makeKeycodeMap([
|
const ASTROCADE_KEYCODE_MAP = makeKeycodeMap([
|
||||||
// player 1
|
// player 1
|
||||||
|
@ -74,14 +74,12 @@ function testPlatform(exports, platform_id, platform_name, numPresets) {
|
|||||||
|
|
||||||
///
|
///
|
||||||
|
|
||||||
/*
|
|
||||||
testPlatform(this, 'vcs', 'Atari 2600', 35);
|
testPlatform(this, 'vcs', 'Atari 2600', 35);
|
||||||
testPlatform(this, 'nes', 'NES', 30);
|
testPlatform(this, 'nes', 'NES', 30);
|
||||||
testPlatform(this, 'vicdual', 'VIC Dual', 7);
|
testPlatform(this, 'vicdual', 'VIC Dual', 7);
|
||||||
testPlatform(this, 'mw8080bw', 'Midway 8080', 3);
|
testPlatform(this, 'mw8080bw', 'Midway 8080', 3);
|
||||||
testPlatform(this, 'galaxian-scramble', 'Galaxian/Scramble', 3);
|
testPlatform(this, 'galaxian-scramble', 'Galaxian/Scramble', 3);
|
||||||
testPlatform(this, 'vector-z80color', 'Atari Color Vector (Z80)', 3);
|
testPlatform(this, 'vector-z80color', 'Atari Color Vector (Z80)', 3);
|
||||||
*/
|
|
||||||
testPlatform(this, 'williams-z80', 'Williams (Z80)', 3);
|
testPlatform(this, 'williams-z80', 'Williams (Z80)', 3);
|
||||||
// TODO testPlatform(this, 'sound_williams-z80', 'Williams Sound (Z80)', 1);
|
// TODO testPlatform(this, 'sound_williams-z80', 'Williams Sound (Z80)', 1);
|
||||||
testPlatform(this, 'coleco', 'ColecoVision', 12);
|
testPlatform(this, 'coleco', 'ColecoVision', 12);
|
||||||
|
Loading…
Reference in New Issue
Block a user