Re: [hatari-devel] Regression in Hatari 2.6.1 - Disabling GEMDOS drive fails |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx, Christian Zietz <czietz@xxxxxxx>
- Subject: Re: [hatari-devel] Regression in Hatari 2.6.1 - Disabling GEMDOS drive fails
- From: Nicolas Pomarède <npomarede@xxxxxxxxxxxx>
- Date: Sun, 31 Aug 2025 13:46:23 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=corp.free.fr; s=rcs; t=1756640784; bh=DKTfaQXYXzaMRjAUvJid2kDkyQ74rwlFy75c0MoXRTw=; h=Date:Subject:To:References:From:In-Reply-To:From; b=qgcqUzZwQFuoerkMU5sIaWkP5nJaBjjry/2MZsj6hXTOxyFzhYdmDafs80RYZ3gb2 6V3PwI26noz1WVm/j0uEz/XTShr4ZE540N30FPjPFOpXK41Qlj2P3Lm/9wQmLMCVVV k9EgC3aqpRMQTIbAaYZeawlEEkWdtdsemPGDh3oZCiSZ+BfO8lYmU1UIdB2+BB1Kz+ C8/BERogiyq0vjlJi/FywKcv5AlfzlmrZ6R3Mx6Xly0rlA37YTemhKtvTw/17WsRFW XP6myFrd4zj6yNh8ozC9GQ5P1iMgzgaM61wmT08cm2L+s8JPwL79ymG+b2pPgaGD3p 8t3boR0+F39tQ==
Le 31/08/2025 à 10:36, Christian Zietz a écrit :
Hello,
sadly, I have to report a regression in Hatari 2.6.1. The manual states
about the -d / --harddrive option: "If <dir> is an empty string, then
harddrive's emulation is disabled". This worked well until and including
Hatari 2.6.0. In Hatari 2.6.1, however:
hatari-2.6.1_windows64\hatari.exe -d ""
Hatari v2.6.1 - the Atari ST, STE, TT and Falcon emulator.
Hatari is free software licensed under the GNU General Public License.
Usage:
hatari [options] [disk image name]
Try option "-h" or "--help" to display more information.
Error while parsing argument "" for option "--harddrive":
Given directory doesn't exist or permissions prevent access to it!
Option usage:
--harddrive <dir> Emulate harddrive partition(s) with <dir> contents
or -d <dir>
<press Enter to exit>
This happens on Windows and on Linux. I'm afraid I don't have time to
investigate. However, this is a major regression (imho) that needs to be
looked into.
Hi
I confirm, this is the problem :
src/options.c line 1704 :
case OPT_HARDDRIVE:
i += 1;
ok = Opt_StrCpy(OPT_HARDDRIVE, CHECK_DIR,
ConfigureParams.HardDisk.szHardDiskDirectories[0],
[...]
flag "CHECK_DIR" will return an error if dir doesn't exist, which is the
case with "-d ''"
A possible fix would be to 1st test if the dir is empty "" ; if so, set
gemdos HD to false and if not call Opt_StrCpy as above as in this case
we really want to ensure the dir exist.
This is a recent change from Eero, I'd rather let him do the fix the way
he prefers (maybe this empty dir issue can appear in other options, I
didn't check that)
Nicolas