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:
@@ -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');
|
||||
|
||||
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user