vAmigaWeb icon indicating copy to clipboard operation
vAmigaWeb copied to clipboard

Incorrect Filename Save DF0 or DH0 If Both Mounted

Open aZtOcKdOg opened this issue 2 years ago • 2 comments

It seems that if there is both a HDF and an ADF file inserted (DH0 and DF0 respectively) then the saving drive back to file uses / fetches the wrong name / same name as whatever was first inserted [EDIT: Appears to not have an order or it is reversed]

eg If a non-booting ADF is inserted followed by a bootable HDF then attempting to save the HDF will result in 'xxxx.adf' filename in the save dialogue box of the host iPadOS

(the same thing the other way around ie If HDF inserted first then any attempt to save the ADF will appear as 'xxxx.hdf' in save dialogue box)

Hope that's an easy one to trace!

aZtOcKdOg avatar May 22 '23 02:05 aZtOcKdOg

when I remember correctly it just takes the name of the last loaded file for all disk exports and adds the correct extension (ADF or HDF) ... this is obviously the wrong approach

e.g. if boot_me.hdf in dh0: is followed by me_too.adf in df1: then when exporting the volume in dh0: it will be renamed to me_too.hdf

we have to find something better...

new idea: maybe we should better remember the name for each drive ? or I can try to get the AmigaOS volume names?

mithrendal avatar May 22 '23 20:05 mithrendal

Ahh right ok that makes sense.

The unique volumes would be great (operative word 'unique' - there would need to be a cross check perhaps between drive number and volume name match = name true etc as if there happened to be 2 disks in the drive called 'Blank.adf' then we need to target the specific one required)

That make sense?

aZtOcKdOg avatar May 23 '23 03:05 aZtOcKdOg