Fixed some idiosyncrasies involving the versioned folder names for the various emulators. Any compiled pdp*.js script (eg, pdp11.js) will be stored in the /versions/pdpjs folder, just as any compiled c1p*.js script will be stored in the /versions/c1pjs folder. Other emulators that don't use a "js" suffix in their name (eg, PCx86 and PC8080) are stored in /versions folders that mirror their names.
This commit is contained in:
parent
4567e9f6c6
commit
30e67a015b
8 changed files with 111 additions and 97 deletions
|
|
@ -1843,7 +1843,7 @@ HTMLOut.prototype.getRandomString = function(sIndent)
|
|||
*
|
||||
* At a minimum, each machine object should contain the following properties:
|
||||
*
|
||||
* 'type' (eg, a machine type, such as "PCx86" or "C1P")
|
||||
* 'type' (eg, a machine type, such as "C1P", "PCx86", "PC8080", or "PDP11")
|
||||
* 'version' (eg, "1.10", "*" to select the current version, or "uncompiled"; "*" is the default)
|
||||
* 'debugger' (eg, true or false; false is the default)
|
||||
*
|
||||
|
|
@ -1891,7 +1891,7 @@ HTMLOut.prototype.processMachines = function(aMachines, buildOptions, done)
|
|||
if (fCompiled) {
|
||||
var sScriptName = sType.toLowerCase();
|
||||
var sScriptFile = sScriptName + (fDebugger? "-dbg" : "") + ".js";
|
||||
var sScriptFolder = sScriptName + ((sType == "C1P" || sType == "PC")? "js" : "");
|
||||
var sScriptFolder = sScriptName == "c1p"? "c1pjs" : (sScriptName.substr(0, 3) == "pdp"? "pdpjs" : sScriptName);
|
||||
asFiles.push("/versions/" + sScriptFolder + "/" + sVersion + "/components.css");
|
||||
asFiles.push("/versions/" + sScriptFolder + "/" + sVersion + "/" + sScriptFile);
|
||||
this.addFilesToHTML(asFiles, sScriptEmbed);
|
||||
|
|
|
|||
|
|
@ -409,10 +409,12 @@ function embedMachine(sAppName, sAppClass, sVersion, idMachine, sXMLFile, sXSLFi
|
|||
* Third-party sites that don't use the PCjs server will ALWAYS want to specify a fully-qualified
|
||||
* path to the XSL file, unless they choose to mirror our folder structure.
|
||||
*/
|
||||
var sAppFolder = sAppClass;
|
||||
if (DEBUG || sVersion == "1.x.x") {
|
||||
sXSLFile = "/modules/" + sAppClass + "/templates/components.xsl";
|
||||
sXSLFile = "/modules/" + sAppFolder + "/templates/components.xsl";
|
||||
} else {
|
||||
sXSLFile = "/versions/" + sAppClass + "/" + sVersion + "/components.xsl";
|
||||
if (sAppClass.substr(0, 3) == "pdp") sAppFolder = "pdpjs";
|
||||
sXSLFile = "/versions/" + sAppFolder + "/" + sVersion + "/components.xsl";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue