Local file in URL?

20 views
Skip to first unread message

Karl Garrison

unread,
Jan 21, 2019, 4:36:43 PM1/21/19
to javatari
Can a rom be loaded locally as part of the URL?  I tried rom=file:///<path>, but this didn't work.  Is there any way to get this to work without a user having to manually load a rom file?

Thanks in advance for any advice!

Paulo Peccin

unread,
Jan 21, 2019, 6:26:58 PM1/21/19
to java...@googlegroups.com
Yes, that's is how you use the "rom" parameter. BUT, you can't tell it to load a local file. It's a security police, the browser does not allow any website to open a local file from the user's computer directly. Imagine the security problem!
You can only directly load other files served on the internet via http: and so, but not file:

To open a local file, the browser requires the user to explicitly click and choose one from the Open File dialog.

Paulo

On Mon, Jan 21, 2019 at 7:36 PM Karl Garrison <kdga...@gmail.com> wrote:
Can a rom be loaded locally as part of the URL?  I tried rom=file:///<path>, but this didn't work.  Is there any way to get this to work without a user having to manually load a rom file?

Thanks in advance for any advice!

--
You received this message because you are subscribed to the Google Groups "javatari" group.
To unsubscribe from this group and stop receiving emails from it, send an email to javatari+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Karl Garrison

unread,
Jan 23, 2019, 8:36:51 AM1/23/19
to javatari
I figured that might be the case, but I didn't know if the security restrictions would be different if you had Javatari saved and loaded on the same machine from where you are trying to load the ROM locally.

After hearing about a person's project to load 2K Atari ROMs from data embedded in a QR code, I had the thought of making an Android app that could read these and create the ROM, then launch Javatari to play that ROM.

Anyway, thanks for your reply!


Karl

Klaus Wuestefeld

unread,
Jan 23, 2019, 1:25:22 PM1/23/19
to java...@googlegroups.com
In case of an Android app (Javatari inside a webview, I suppose), browser restrictions don't apply.

K

Paulo Peccin

unread,
Jan 23, 2019, 3:18:50 PM1/23/19
to java...@googlegroups.com
Well, in embedded scenarios like that there are better alternatives, we don't even need to use file references in the URL.
But I suppose Karl was thinking about launching the official website in the browser, with a URL pointing to the local ROM file, right Karl?

Paulo
Reply all
Reply to author
Forward
0 new messages