mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2024-12-22 12:30:01 +00:00
platform id like '.mame' shares same presets
This commit is contained in:
parent
f7129e9fde
commit
690b3ac013
10
presets/apple2/skeleton.dasm
Normal file
10
presets/apple2/skeleton.dasm
Normal file
@ -0,0 +1,10 @@
|
||||
|
||||
processor 6502
|
||||
seg.u ZEROPAGE ; uninitialized zero-page variables
|
||||
org $0
|
||||
|
||||
seg CODE
|
||||
org $803 ; starting address
|
||||
|
||||
Start
|
||||
jmp Start ; endless loop
|
@ -3,5 +3,4 @@
|
||||
. ./scripts/env.sh
|
||||
DESTPATH=$RSYNC_PATH/dev/
|
||||
git ls-files -z | rsync --stats --exclude '.*' --exclude 'scripts/*' --exclude=node_modules -ril --chmod=a+rx -e "ssh -p 2222" --files-from - -0 . $DESTPATH
|
||||
git archive --format tar.gz --prefix 8bitworkshop- HEAD tools/ > release/8bitworkshop-tools.tgz
|
||||
rsync --stats -rpilvz --chmod=a+rx -e "ssh -p 2222" ./gen ./mame $DESTPATH/
|
||||
|
@ -1,5 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
. ./scripts/env.sh
|
||||
VERSION=`git tag | tail -1`
|
||||
DESTPATH=$RSYNC_PATH/
|
||||
rsync --stats -rilv -e "ssh -p 2222" ./release/ $DESTPATH/release
|
||||
git archive --format tar.gz --prefix 8bitworkshop- HEAD tools/ > release/8bitworkshop-tools.tgz
|
||||
rsync --stats -rpilvz --chmod=a+rx -e "ssh -p 2222" ./release $DESTPATH/
|
||||
|
@ -21,6 +21,5 @@ mkdir -p $TMPDIR
|
||||
git archive $VERSION | tar x -C $TMPDIR
|
||||
echo "Copying to $DESTPATH..."
|
||||
rsync --stats --exclude '.*' --exclude 'scripts/*' --exclude=node_modules --copy-dest=$DEVPATH -rilz --chmod=a+rx -e "ssh -p 2222" $TMPDIR/ $SUBMODS $DESTPATH
|
||||
git archive --format tar.gz --prefix 8bitworkshop- HEAD tools/ > release/8bitworkshop-tools-$VERSION.tgz
|
||||
rsync --stats -rpilvz --chmod=a+rx -e "ssh -p 2222" ./gen ./mame $DESTPATH/
|
||||
echo "Done."
|
||||
|
@ -388,4 +388,4 @@ var VCSMAMEPlatform = function(mainElement) {
|
||||
////////////////
|
||||
|
||||
PLATFORMS['vcs'] = VCSPlatform;
|
||||
PLATFORMS['vcs-mame'] = VCSMAMEPlatform;
|
||||
PLATFORMS['vcs.mame'] = VCSMAMEPlatform;
|
||||
|
@ -172,7 +172,7 @@ export class CodeProject {
|
||||
} else {
|
||||
// found on remote fetch?
|
||||
var preset_id = this.platform_id;
|
||||
preset_id = preset_id.replace("-mame","");
|
||||
preset_id = preset_id.replace(/[.]\w+/,''); // remove .suffix from preset name
|
||||
var webpath = "presets/" + preset_id + "/" + path;
|
||||
if (this.platform_id.startsWith('vcs') && path.indexOf('.') <= 0)
|
||||
webpath += ".a"; // legacy stuff
|
||||
|
@ -926,7 +926,7 @@ function startUI(loadplatform : boolean) {
|
||||
} else {
|
||||
// load and start platform object
|
||||
if (loadplatform) {
|
||||
var scriptfn = 'src/platform/' + platform_id.split('-')[0] + '.js';
|
||||
var scriptfn = 'src/platform/' + platform_id.split(/[.-]/)[0] + '.js';
|
||||
var script = document.createElement('script');
|
||||
script.onload = function() {
|
||||
console.log("loaded platform", platform_id);
|
||||
|
Loading…
Reference in New Issue
Block a user