1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2026-04-20 15:16:38 +00:00

updated firebase, refactored ProjectFilesystem

This commit is contained in:
Steven Hugg
2021-04-07 10:22:49 -05:00
parent a63b1230a7
commit 4ccf588c80
6 changed files with 63 additions and 18 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ function newGH(store, platform_id) {
localStorage.clear();
// pzpinfo user
var pid = platform_id||test_platform_id;
var fs = new prj.LocalForageFilesystem(store, new prj.NullFilesystem());
var fs = new prj.LocalForageFilesystem(store);
var project = new prj.CodeProject({}, pid, null, fs);
project.mainPath = 'local/main.asm';
project.updateFileInStore(project.mainPath, '\torg $0 ; test\n');
+3 -1
View File
@@ -13,7 +13,9 @@ var prj = require("gen/ide/project.js");
var test_platform_id = "_TEST";
function newFilesystem(store, platform_id) {
return new prj.LocalForageFilesystem(store, new prj.NullFilesystem());
return new prj.OverlayFilesystem(
new prj.NullFilesystem(),
new prj.LocalForageFilesystem(store));
}
describe('Store', function () {