Skip to content

Commit

Permalink
Update setup of Emscripten based loaders
Browse files Browse the repository at this point in the history
  • Loading branch information
pengan1987 committed Sep 17, 2018
1 parent 9032a72 commit 917c042
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 6 additions & 1 deletion example_pc98dosbox.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@
PC98DosBoxLoader.emulatorWASM("emulators/dosbox-x/dosbox.wasm"),
PC98DosBoxLoader.locateAdditionalEmulatorJS(locateAdditionalFiles),
PC98DosBoxLoader.nativeResolution(640, 480),

/* DOSBox-X seems like always need a doxbox.conf to run in PC-98 mode correctly, load your dosbox.conf
when it is not include in your game package
PC98DosBoxLoader.mountFile("dosbox.conf",
PC98DosBoxLoader.fetchFile("Configuration File",
"dosbox.conf")),
*/
PC98DosBoxLoader.mountZip("c",
PC98DosBoxLoader.fetchFile("Game File",
"examples/th1.zip")),
Expand Down
3 changes: 1 addition & 2 deletions loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,6 @@ var Module = null;
}
PC98DosBoxRunner.prototype = Object.create(EmscriptenRunner.prototype);
PC98DosBoxRunner.prototype.start = function () {
FS.symlink('/emulator/y/dosbox-default.conf', '/dosbox.conf');
FS.symlink('/emulator/y/FONT.ROM', '/FONT.ROM');
FS.symlink('/emulator/y/2608_bd.wav', '/2608_bd.wav');
FS.symlink('/emulator/y/2608_hh.wav', '/2608_hh.wav');
Expand Down Expand Up @@ -1290,7 +1289,7 @@ var Module = null;
}

if ("runner" in game_data) {
if (game_data.runner == EmscriptenRunner || game_data.runner == MAMERunner || game_data.runner == PC98DosBoxRunner) {
if (game_data.runner == EmscriptenRunner || game_data.runner.prototype instanceof EmscriptenRunner) {
// this is a stupid hack. Emscripten-based
// apps currently need the runner to be set
// up first, then we can attach the
Expand Down

0 comments on commit 917c042

Please sign in to comment.