nbarkhina / DosWasmX

Build your own DOS/Windows machine in the browser
https://www.neilb.net/doswasmx/
MIT License
28 stars 3 forks source link

Boot HDD and CD ISO? #9

Closed Sembiance closed 3 months ago

Sembiance commented 3 months ago

I'm successfully booting up using 'DEFAULTIMG:"/pc/hdd.img' into windows 98. If I manually choose Advanced->Load CD and give it an ISO, it correctly reboots the machine and the CD ROM contents shows up just fine.

What I'd like to do is boot up with the CD ISO already in the drive so it doesn't have to reboot. Ideally give it a URL to an ISO file to load.

I tried setting both ISOURL and DEFAULTIMG, but that didn't work, it never tries loading the CD ISO. I tried loading with myApp.loadRom(false) but then it just tries to boot the CD ISO, which doesn't work as it's not bootable. So I don't think that ISOURL is designed to do this.

Any tips?

By the way, I'm totally open to modifying the script.js fiel in any way needed to accomplish this feat :)

Sembiance commented 3 months ago

So I got this working.

In case anyone else is looking to do it, it took a lot of modifications to 'script.js':

nbarkhina commented 3 months ago

glad you were able to get it working. yeah currently that is not an out of the box feature, but as you discovered all the plumbing is there to do it. I'll add it to my list of TODO's, thanks for the suggestion.