1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-12-21 21:29:17 +00:00

new travis.yml; last used file per-platform

This commit is contained in:
Steven Hugg 2017-01-11 22:28:29 -05:00
parent 18c1028250
commit a7938cf54e
4 changed files with 14 additions and 3 deletions

9
doc/.travis.yml Normal file
View File

@ -0,0 +1,9 @@
# Handle git submodules yourself
git:
submodules: false
# Use sed to replace the SSH URL with the public URL, then initialize submodules
before_install:
- sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules
- git submodule update --init --recursive
language: node_js
- "6.5.0"

@ -1 +1 @@
Subproject commit 97052f9149bf756ce69591e005762dadea8527a6
Subproject commit 4cd5b798f534336d09a80e8a1fa962959f401359

View File

@ -69,6 +69,7 @@ var VCSPlatform = function() {
this.pause = function() { Javatari.room.console.pause(); }
this.resume = function() { Javatari.room.console.go(); }
this.step = function() { Javatari.room.console.debugSingleStepCPUClock(); }
this.stepBack = function() { Javatari.room.console.debugStepBackInstruction(); }
this.runEval = function(evalfunc) { Javatari.room.console.debugEval(evalfunc); }
this.setupDebug = function(callback) {

View File

@ -73,8 +73,8 @@ function getCurrentPresetTitle() {
}
function setLastPreset(id) {
localStorage.setItem("__lastid", id);
localStorage.setItem("__lastplatform", platform_id);
localStorage.setItem("__lastid_"+platform_id, id);
}
function updatePreset(current_preset_id, text) {
@ -906,7 +906,8 @@ try {
updateSelector();
} else {
// try to load last file
var lastid = localStorage.getItem("__lastid");
var lastid = localStorage.getItem("__lastid_"+platform_id) || localStorage.getItem("__lastid");
localStorage.removeItem("__lastid");
gotoPresetNamed(lastid || PRESETS[0].id);
}
}