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
|
|
@ -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