Skip to content

Commit

Permalink
I hit up my local bbs for some warez
Browse files Browse the repository at this point in the history
fixes #1
  • Loading branch information
db48x committed Apr 15, 2015
1 parent d132a37 commit 0c1326b
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 4 deletions.
46 changes: 42 additions & 4 deletions example_dosbox.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,33 @@
<!--
The Emularity: An Example Computer Loader
For use with The Emularity, downloadable at http://www.emularity.com/
SIMPLE STEPS for trying an emulated computer ("Doom (shareware
edition)" for the PC).
* Check out this repository in your browser-accessible directory;
this file as well as es6-promise.js, browserfs.js and loader.js are
required. The logo and images directories are optional, but the
splash screen looks quite a lot better when they're available.
* Use "git annex get emulators/em-dosbox/dosbox-sync.js.gz" to download
the compiled emulator; if you don't have git-annex you can download
it from IA manually.
(https://archive.org/download/emularity_engine_dosbox/dosbox-sync.js.gz)
* Use "git annex get emulators/em-dosbox/dosbox-sync.mem.gz" to
download the compiled emulator's memory initialization file; if you
don't have git-annex you can download it from IA manually.
(https://archive.org/download/emularity_engine_dosbox/dosbox-sync.mem.gz)
* Use "git annex get examples/DoomV1.9sw1995idSoftwareInc.action.zip"
to download the Doom v1.9 binaries; these can be downloaded from IA manually.
(https://archive.org/download/DoomsharewareEpisode/DoomV1.9sw1995idSoftwareInc.action.zip)
* Visit your example_dosbox.html file with a modern
Javascript-capable browser.
-->

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Expand All @@ -11,13 +41,21 @@
<script type="text/javascript">
var emulator = new Emulator(document.querySelector("#canvas"),
null,
new DosBoxLoader(DosBoxLoader.emulatorJS("emulators/em-dosbox/dosbox.js"),
DosBoxLoader.nativeResolution(640, 400),
new DosBoxLoader(DosBoxLoader.emulatorJS("emulators/em-dosbox/dosbox-sync.js"),
DosBoxLoader.locateAdditionalEmulatorJS(locateAdditionalFiles),
DosBoxLoader.nativeResolution(640, 480),
DosBoxLoader.mountZip("c",
DosBoxLoader.fetchFile("Game File",
"examples/Zzt_1991_Epic_Megagames_Inc.zip")),
DosBoxLoader.startExe("zzt.exe")))
"examples/DoomV1.9sw1995idSoftwareInc.action.zip")),
DosBoxLoader.startExe("doom.exe")))
emulator.start({ waitAfterDownloading: true });

function locateAdditionalFiles(filename) {
if (filename === "dosbox.html.mem") {
return "emulators/em-dosbox/dosbox-sync.mem";
}
return "emulators/em-dosbox/"+ filename;
}
</script>
</body>
</html>
1 change: 1 addition & 0 deletions examples/DoomV1.9sw1995idSoftwareInc.action.zip

0 comments on commit 0c1326b

Please sign in to comment.