Closed Nightaway closed 6 years ago
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>example console game</title>
</head>
<body>
<canvas id="canvas" style="width: 50%; height: 50%; display: block; margin: 0 auto;"/>
<script type="text/javascript" src="es6-promise.js"></script>
<script type="text/javascript" src="browserfs.min.js"></script>
<script type="text/javascript" src="loader.js"></script>
<script type="text/javascript">
var emulator = new Emulator(document.querySelector("#canvas"),
null,
new JSMESSLoader(JSMESSLoader.driver("psj"),
JSMESSLoader.nativeResolution(640, 480),
JSMESSLoader.emulatorJS("mamepsxtest.js"),
JSMESSLoader.mountFile("psj.zip",
JSMESSLoader.fetchFile("BIOS File",
"psj.zip")),
JSMESSLoader.mountFile("Daikoukaijidai Ⅳ (J).bin",
JSMESSLoader.fetchFile("Game File",
"Daikoukaijidai Ⅳ (J).bin")),
JSMESSLoader.mountFile("Daikoukaijidai Ⅳ (J).cue",
JSMESSLoader.fetchFile("Game File",
"Daikoukaijidai Ⅳ (J).cue")),
JSMESSLoader.peripheral("cdrom", "Daikoukaijidai Ⅳ (J).bin")
));
emulator.setScale(1).start({ waitAfterDownloading: true });
</script>
</body>
</html>
Starting palette ':gpu:palette'
loader.js:827 Starting Speaker ':lspeaker'
loader.js:827 (missing dependencies; rescheduling)
loader.js:827 Starting Speaker ':rspeaker'
loader.js:827 (missing dependencies; rescheduling)
loader.js:827 Starting PlayStation SPU ':spu'
loader.js:827 Starting Quickload ':quickload'
loader.js:827 Starting Software List ':cd_list'
loader.js:827 Starting Playstation Parallel Slot ':parallel'
loader.js:827 Starting PSX CD-ROM ':psxcd'
loader.js:827 Starting Sony PlayStation (Japan) ':'
loader.js:827 (missing dependencies; rescheduling)
loader.js:827 Starting CXD8561Q GPU ':gpu'
loader.js:827 (missing dependencies; rescheduling)
loader.js:827 Starting Video Screen ':gpu:screen'
loader.js:827 Starting Speaker ':lspeaker'
loader.js:827 Starting Speaker ':rspeaker'
loader.js:827 Starting Sony PlayStation (Japan) ':'
loader.js:827 (missing dependencies; rescheduling)
loader.js:827 Starting CXD8561Q GPU ':gpu'
loader.js:827 Starting Sony PlayStation (Japan) ':'
loader.js:827 Attempting to parse: default.cfg
loader.js:827 Attempting to parse: psj.cfg
loader.js:827 29
loader.js:828 29
mamepsxtest.js:1 Uncaught abort(29). Build with -s ASSERTIONS=1 for more info.
MAME needs you to tell it what to do. In this case you want to load your cd image into the cdrom device. The JSMESSLoader has a helper method for doing this, so you should be able to do it by adding this line to your config:
JSMESSLoader.peripheral("cdrom", "Daikoukaijidai Ⅳ (J).bin")
See the MAME documentation for more details.
thank u, i will try it later.
It crash in mame64 too, I think the emulation of PSX was not done completely.
I successfully run PlayStation BIOS, but I dont know how to load bin file to cdrom, thanks for any guide。