Menu

#450 Want: Error on incompatible disk image vs drive type

general
open
nobody
None
User Interface
2022-11-14
2022-11-12
Pontus Berg
No

After reading a scene magazine from a d81 image (where I do believe VICE self-adjusted the device type to 1581) I went back to coding my own project and suddenly my vanilla kernal stuff didn't work.

So it seems opening a d81 in DirMaster and selecting top open it in VICE somehow made the device type 1581, but opening d64 images using ALT+8 inside the program, will not revert device type back to 1541. Took a while before I figured what had gone wrong.

As I see it, there are a number of options: * Adjust device type depending on the image type (all cases) * Give an error if the image type is not compatible with the device type (in the real world you cannot force a 5.25" disk into a 3.5" floppy drive).

Allowing a d64 when the device setting it 1581 with no warning is not really the optimal user friendly set-up.

Discussion

  • gpz

    gpz - 2022-11-12

    VICE already does change the drive type to match the image - so i am really wondering what you are doing there. Please take "Dirmaster" out of the equation :)

     
  • radius75

    radius75 - 2022-11-12

    When I mount d81 in 1541, it changes to 1581 only after right-clicking on drive LED icon, and selecting the file to LOAD.
    Or when you click on AUTOSTART when d81 is selected.
    Otherwise, it stays as it is (1541) with the wrong disk image

    When I mount d64 in 1581 it's the same situation.

    I think that's the case with all drive types

     

    Last edit: radius75 2022-11-12
  • Pontus Berg

    Pontus Berg - 2022-11-14

    I had device 8 set to 1581, and I selected a D64 and got no errors ...

     
    • radius75

      radius75 - 2022-11-14

      I have no errors either. But I can't use the image mounted in this way in the wrong drive.
      74,DRIVE NOT READY
      Vice changes Drive automatically only with AUTOSTART

       

      Last edit: radius75 2022-11-14
      • radius75

        radius75 - 2022-11-14

        It changes the Drive to the correct one only after selecting AUTOSTART or double-clicking on the selected PRG.
        Otherwise it will mount the image to the wrong Drive type (74,DRIVE NOT READY).

         

        Last edit: radius75 2022-11-14

Log in to post a comment.