Node version of PCjs runs again
This commit is contained in:
parent
38c01f410c
commit
62f64f5571
7 changed files with 1002 additions and 1003 deletions
|
|
@ -21,14 +21,14 @@
|
|||
"name": "",
|
||||
"addr": 0xf6000,
|
||||
"size": 0x08000,
|
||||
"file": "/devices/pc/basic/ibm-basic-1.00.json",
|
||||
"file": "/devices/pc/rom/5150/basic/BASIC100.json",
|
||||
"notify": ""
|
||||
},
|
||||
{ "id": "romBIOS",
|
||||
"name": "",
|
||||
"addr": 0xfe000,
|
||||
"size": 0x02000,
|
||||
"file": "/devices/pc/bios/5150/1981-04-24.json",
|
||||
"file": "/devices/pc/rom/5150/bios/1981-04-24/PCBIOS-REV1.json",
|
||||
"notify": ""
|
||||
}
|
||||
],
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ try {
|
|||
var Component;
|
||||
var dbg;
|
||||
var aComponents = [];
|
||||
var asComponentsIgnore = ["embed"];
|
||||
var asComponentsIgnore = ["embed","save"];
|
||||
|
||||
/**
|
||||
* loadComponents(asFiles)
|
||||
|
|
|
|||
|
|
@ -1035,11 +1035,11 @@ Disk.prototype.load = function(sDiskName, sDiskPath, file, fnNotify, controller)
|
|||
this.sDiskPath = sDiskPath;
|
||||
this.sDiskFile = str.getBaseName(sDiskPath);
|
||||
|
||||
var disk = this;
|
||||
this.fnNotify = fnNotify;
|
||||
this.controllerNotify = controller || this.controller;
|
||||
|
||||
if (file) {
|
||||
var disk = this;
|
||||
var reader = new FileReader();
|
||||
reader.onload = function() {
|
||||
disk.build(reader.result, true);
|
||||
|
|
@ -1099,7 +1099,6 @@ Disk.prototype.load = function(sDiskName, sDiskPath, file, fnNotify, controller)
|
|||
}
|
||||
}
|
||||
}
|
||||
var disk = this;
|
||||
return !!web.getResource(sDiskURL, null, true, function(sURL, sResponse, nErrorCode) {
|
||||
disk.doneLoad(sURL, sResponse, nErrorCode);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue