[hatari-devel] Executing program with Hatari
Thomas Huth
huth at users.berlios.de
Wed Oct 6 23:34:36 CEST 2010
Hi!
On Wed, 6 Oct 2010 22:01:26 +0300
Eero Tamminen <eerot at users.berlios.de> wrote:
> One possibility would be to in Hatari start:
> * Check if the given file is a GEMDOS program (starts with 0x601a)
> instead of disk image. If it is:
> - enable GEMDOS HDD emulation for directory where this program
> resides
> - write a suitably modified desktop file contents e.g. into
> ~/.hatari/ directory. Contents will be different depending on whether
> normal TOS or EmuTOS is used
> - set a flag that DESKTOP.INF/EMUDESK.INF file opens should be
> redirected in GEMDOS emulation to this file (maybe only first one
> after boot?)
>
> Thomas, Nicolas, how does that sound? Acceptable? :-)
Sounds like a nice, crazy hack to me 8-)
I also think that using DESKTOP.INF is the only feasible way to
automatically start such a program, ... not sure whether I like the
idea of the "virtual" INF file, but I also don't have a better idea
right now to avoid such problems like write-protected folders.
And I think you should write such a temporary file rather to /tmp/
instead of ~/.hatari/, by using the tmpfile() function for example.
Oh, and you might need to support NEWDESK.INF for newer TOS versions as
well...
Thomas
More information about the hatari-devel
mailing list