Fixed machine array demos, by permitting machine IDs with hyphenated numeric suffixes to use a machine state file created with an unhyphenated machine ID, and added a demo of Windows 1.0 (the "Premiere Edition")
This commit is contained in:
parent
2f1ab7df40
commit
503cda40f7
27 changed files with 99 additions and 57 deletions
|
|
@ -864,7 +864,7 @@ function LB(a,b){if(!b){var c;if("object"==typeof resources&&(c=resources.parms)
|
|||
function QB(a,b){var c=new Zf(a,"1.35.1",RB);if(c.load()&&SB(c)){var d=c.get(TB),e=b?b.get(TB):"unknown";d!=e&&(a.Da("Machine state may be out-of-date\n("+d+" vs. "+e+")\nCheck your browser's local storage limits"),b||c.clear())}}l=KB.prototype;
|
||||
l.Mf=function(a){void 0===a&&(a=this.A||(this.L?UB:MB));if(!this.B){this.B++;var b=!1,c=!1;this.Y=!1;var d=this.M||new Zf(this,"1.35.1");if(a==VB)b=!0;else if(a>MB){if(d.load(this.L)){this.F=new Zf(this,"1.35.1",WB);this.F.load()&&(XB(this,d)&&(a=YB),ZB(this.F));this.F.set(TB,Ea());$B(this.F);var e=this.A&&!this.I;if(a==UB||ub("Click OK to restore the previous PCx86 machine state, or CANCEL to reset the machine.")){if(c=SB(d)){var f=d.get("code"),g=d.get("data");f&&("ok"==f?d.load(g):("error"==f&&
|
||||
"no machine state"!=g?(this.Da("Error: "+g),"unable to verify user"==g&&(Va(aC,""),this.C=null)):this.P(f+": "+g),ZB(d),d.load()?(c=SB(d),e=!0):c=!1))}e&&QB(this,c?d:null)}else a==YB&&d.clear()}else QB(this);delete this.L;delete this.M}e=vb(this.id);for(f=0;f<e.length;f++)g=e[f],g!==this&&g!=this.H&&(c=bC(this,g,d,b,c));b=[d,a,c];a!=VB?PB(this,this.oj,b):this.oj(b)}};
|
||||
function bC(a,b,c,d,e){if(!b.da.Yb){b.da.Yb=!0;if(b.Xb){var f=null;e&&((f=c.get(b.id))||(f=c.get(b.id.replace(/[a-z0-9]\./i,"."))));"string"===typeof f&&(f=null);!b.Xb(f,d)&&f&&(b.Da("Unable to restore hardware state")&&(a.W&&!a.Z?(c.clear(),a.A=MB,window&&window.location.reload()):a.Y=!0),b.Xb(null),e=!1)}if(!d&&b.zj)for(a=b.zj.split("|"),c=0;c<a.length;c++)b.status(a[c])}return e}
|
||||
function bC(a,b,c,d,e){if(!b.da.Yb){b.da.Yb=!0;if(b.Xb){var f=null;e&&((f=c.get(b.id))||(f=c.get(b.id.replace(/-[0-9]+\./i,"."))));"string"===typeof f&&(f=null);!b.Xb(f,d)&&f&&(b.Da("Unable to restore hardware state")&&(a.W&&!a.Z?(c.clear(),a.A=MB,window&&window.location.reload()):a.Y=!0),b.Xb(null),e=!1)}if(!d&&b.zj)for(a=b.zj.split("|"),c=0;c<a.length;c++)b.status(a[c])}return e}
|
||||
l.oj=function(a){var b=a[0],c=0>a[1];a=a[2];this.ga=!0;this.da.Yb=!0;var d=this.na.power;d&&(d.textContent="Shutdown");this.H&&(bC(this,this.H,b,c,a),this.H.mf());this.Y&&(XB(this,b),b.clear());!c&&this.F&&(this.F.clear(),delete this.F);this.B=0};
|
||||
function XB(a,b){if(!a.da.Tf){if(ub("There may be a problem with your PCx86 machine.\n\nTo help us diagnose it, click OK to send this PCx86 machine state to http://www.pcjs.org.")){var c=a.C||"";b=b.toString();var d={app:"PCx86",ver:"1.35.1"};d.url=a.ea;d.user=c;d.type="bug";d.data=b;Na("http://www.pcjs.org/api/v1/report",d,!0)}return!0}return!1}
|
||||
function rB(a,b,c){var d,e="none";if(a.B)return null;a.B--;var f=new Zf(a,"1.35.1"),g=new Zf(a,"1.35.1",RB),h=Ea();g.set(TB,h);f.set(TB,h);f.set(cC,"1.35.1");f.set(dC,window?window.location.href:null);f.set(eC,Pa());a.H&&a.H.Wb&&(c&&a.H.Jb(),d=a.H.Wb(b,c),"object"===typeof d&&f.set(a.H.id,d),c&&(a.H.da.Yb=!1,!1===d&&(e=null)));for(var h=vb(a.id),k=0;k<h.length;k++){var m=h[k];m.da.Yb&&(m.Wb&&(d=m.Wb(b,c),"object"===typeof d&&f.set(m.id,d)),c&&(m.da.Yb=!1,!1===d&&(e=null)))}e&&(c?(h=d=!1,b?(a.C&&fC(a,
|
||||
|
|
|
|||
Loading…
Reference in a new issue