[Freemint-list] [PATCH] Put bootlog file into sysdir/machdir
Miro Kropáček
miro.kropacek at gmail.com
Thu Dec 29 18:59:34 MSK 2016
Hi,
holidays have brought me to an idea to reorganise some stuff on my Falcon's
disk, i.e. have separate partitions for every system -- TOS, MagiC,
FreeMiNT, Geneva, ... and boot into each of them with a single keystroke
(courtesy of HD Driver and lately also EmuTOS), just for fun.
However, you can imagine my surprise when I realised that XaAES (from
EasyMiNT 1.90) crashes if I don't boot it from C:. Later I realised that it
had been fixed in trunk and later after that I realised it had been
modified to <sysdrv>/mint/boot.log path in Helmut's branch.
I don't like either of the solutions, it smells hacky to me. So here's a
patch for putting boot.log where it belongs -- into $SYSDIR and, if
present, into mchdir so you can have different logs for each machine, if
you happen to share the same image / folder across more hardware.
I also took the liberty to fix some awful design decisions regarding the
bootlog handling (like passing memory pointer between processes). To be
honest, I can't quite understand why we need a Ssystem() call just to
determine the path of bootlog file (esp. if there's /kern/bootlog) but
whatever, I fixed it.
Comments welcome.
--
MiKRO / Mystic Bytes
http://mikro.atari.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.atariforge.org/pipermail/freemint-list/attachments/20161230/ea82df84/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bootlog.patch
Type: text/x-patch
Size: 9057 bytes
Desc: not available
Url : http://mail.atariforge.org/pipermail/freemint-list/attachments/20161230/ea82df84/attachment.bin
More information about the Freemint-list
mailing list