Adf files icon default tool

A forum for general AmigaOS 4.x support questions that are not platform-specific
Post Reply
User avatar
electric-magic
Posts: 36
Joined: Sat Jul 28, 2012 9:04 am
Location: Paphos, Cyprus
Contact:

Adf files icon default tool

Post by electric-magic »

Sorry if this has been asked before.
All my adf game files and applications have now got a icon default tool of "MountDiskimage".
I can change each one to "runinUAE" but this will take forever.
Any way to change all the adf default tool settings?

Thank you.
Ax1000/A4000 040 D/A1200 030
User avatar
nbache
Beta Tester
Beta Tester
Posts: 1744
Joined: Mon Dec 20, 2010 7:25 pm
Location: Copenhagen, Denmark
Contact:

Re: Adf files icon default tool

Post by nbache »

electric-magic wrote:Any way to change all the adf default tool settings?
There are two ways I can think of to solve this.

One is to delete all the icons (the .info files) from your ADF files and set up a default icon (using deficons prefs) with RunInUAE as default tool.

The other is to whip up a small script which finds all the icons and calls a tool to set the default tool on each of them.

(I was going to point you towards SSolie's ChangeToolType, but it doesn't seem, judging by the readme, to support changing the default tool. Enhancement wish, maybe?)

Best regards,

Niels
User avatar
electric-magic
Posts: 36
Joined: Sat Jul 28, 2012 9:04 am
Location: Paphos, Cyprus
Contact:

Re: Adf files icon default tool

Post by electric-magic »

Thanks Niels,
Tried the first option but did not work.
Also noticed that when I inserted an sd card with some games on the tooltype was the same for them"" MountDiskimage""

Do you think maybe I have done something with the Diskimage settings?

JC
Ax1000/A4000 040 D/A1200 030
User avatar
nbache
Beta Tester
Beta Tester
Posts: 1744
Joined: Mon Dec 20, 2010 7:25 pm
Location: Copenhagen, Denmark
Contact:

Re: Adf files icon default tool

Post by nbache »

electric-magic wrote:Tried the first option but did not work.
Did you create a default icon, named def_adf.info and stored in ENVARC:SYS/ and containing the default tool pointing to RunInUAE (with its full path or AppDir: path)?
Also noticed that when I inserted an sd card with some games on the tooltype was the same for them"" MountDiskimage""
Maybe there is an icon on the card containing that default tool? A real icon will always override a deficon.

Best regards,

Niels
User avatar
Petrol
Beta Tester
Beta Tester
Posts: 175
Joined: Mon Dec 20, 2010 6:19 pm
Location: France

Re: Adf files icon default tool

Post by Petrol »

Maybe this link could help you!

Regards,
Petrol.
User avatar
electric-magic
Posts: 36
Joined: Sat Jul 28, 2012 9:04 am
Location: Paphos, Cyprus
Contact:

Re: Adf files icon default tool

Post by electric-magic »

I have changed the Envarc:sys/def_hdf.info default tool to the runinuae path and all the games and apps start OK.

Would that be it?

JC
Ax1000/A4000 040 D/A1200 030
Post Reply