mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2026-02-06 11:17:36 +00:00
Add beta bootup batch file
This commit is contained in:
parent
18e3a4c3a1
commit
8c750dde40
@ -128,6 +128,7 @@
|
||||
config.shaders = Object.assign({}, window.EJS_SHADERS, window.EJS_shaders ? window.EJS_shaders : {});
|
||||
config.fixedSaveInterval = window.EJS_fixedSaveInterval;
|
||||
config.disableAutoUnload = window.EJS_disableAutoUnload;
|
||||
config.disableBatchBootup = window.EJS_disableBatchBootup;
|
||||
|
||||
let systemLang;
|
||||
try {
|
||||
|
||||
@ -164,6 +164,22 @@ class EJS_GameManager {
|
||||
}
|
||||
return cfg;
|
||||
}
|
||||
writeBootupBatchFile() {
|
||||
const data = `
|
||||
SET BLASTER=A220 I7 D1 H5 T6
|
||||
|
||||
@ECHO OFF
|
||||
mount A / -t floppy
|
||||
SET PATH=Z:\\;A:\\
|
||||
mount c /emulator/c
|
||||
c:
|
||||
COMMAND.COM
|
||||
IF EXIST AUTORUN.BAT AUTORUN.BAT
|
||||
`;
|
||||
const filename = "BOOTUP.BAT";
|
||||
this.FS.writeFile("/" + filename, data);
|
||||
return filename;
|
||||
}
|
||||
initShaders() {
|
||||
if (!this.EJS.config.shaders) return;
|
||||
this.mkdir("/shader");
|
||||
|
||||
@ -4,7 +4,7 @@ class EmulatorJS {
|
||||
"atari5200": ["a5200"],
|
||||
"vb": ["beetle_vb"],
|
||||
"nds": ["melonds", "desmume", "desmume2015"],
|
||||
"arcade": ["fbneo", "fbalpha2012_cps1", "fbalpha2012_cps2"],
|
||||
"arcade": ["fbneo", "fbalpha2012_cps1", "fbalpha2012_cps2", "same_cdi"],
|
||||
"nes": ["fceumm", "nestopia"],
|
||||
"gb": ["gambatte"],
|
||||
"coleco": ["gearcoleco"],
|
||||
@ -940,6 +940,9 @@ class EmulatorJS {
|
||||
} else if (createCueFile && supportsExt("m3u") && supportsExt("cue")) {
|
||||
this.fileName = this.gameManager.createCueFile(fileNames);
|
||||
}
|
||||
if (this.getCore(true) === "dos" && !this.config.disableBatchBootup) {
|
||||
this.fileName = this.gameManager.writeBootupBatchFile();
|
||||
}
|
||||
resolve();
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user