Miracle icon indicating copy to clipboard operation
Miracle copied to clipboard

loading rom from url

Open ghost opened this issue 7 years ago • 1 comments

how can we load a rom from url? for example, if we have a compiled homebrew rom host somewhere in webhost services like altervista, how can we add its url in the whole emulator url, just like we do from emulators like webmsx? ( like http://webmsx.org/?ROM=http://nitrofurano.altervista.org/retrocoding/msx/roms/cmjn.rom )

ghost avatar Nov 07 '17 22:11 ghost

Great idea; and easy but only if the endpoint supports CORS - which many places do. Taking a look at the ROM link you suggested:

Server: Apache
ETag: "c442b9-4000-55c3a8291b900"
Accept-Ranges: bytes
Keep-Alive: timeout=1, max=100
Content-Length: 16384
Content-Type: text/plain
Last-Modified: Mon, 23 Oct 2017 17:54:12 GMT
Connection: keep-alive

There are no CORS headers so there's no way to get Javascript alone to fetch the ROM (JS has security features to prevent you fetching and using data from other servers without their permission). I can only imagine webmsx is bouncing through a server to do this work for it, which is beyond the scope of what Miracle can do.

mattgodbolt avatar Nov 07 '17 22:11 mattgodbolt