mirror of
https://github.com/db48x/emularity.git
synced 2026-09-15 11:03:57 +00:00
add native resolutions and waitAfterDownloading option to the examples
This commit is contained in:
+2
-1
@@ -12,11 +12,12 @@
|
||||
var emulator = new Emulator(document.querySelector("#canvas"),
|
||||
null,
|
||||
new DosBoxLoader(DosBoxLoader.emulatorJS("emulators/dosbox.js"),
|
||||
DosBoxLoader.nativeResolution(640, 400),
|
||||
DosBoxLoader.mountZip("c",
|
||||
DosBoxLoader.fetchFile("Game File",
|
||||
"examples/Zzt_1991_Epic_Megagames_Inc.zip")),
|
||||
DosBoxLoader.startExe("zzt.exe")))
|
||||
emulator.start();
|
||||
emulator.start({ waitAfterDownloading: true });
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user