English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 09 November 2018, 13:35   #1
Foebane
Registered User
 
Join Date: Sep 2011
Location: Cardiff, UK
Age: 46
Posts: 1,337
Filenames in configurations - do extensions need to be specified?

Does WinUAE need to know the extension (adf, dms, lha, zip, etc.) of any floppy disks or hard drive files mentioned in configuration files? Or does it simply look at the file header of any files it reads instead, to determine what type it is?
Foebane is offline  
Old 09 November 2018, 14:24   #2
DamienD
Global Moderator

DamienD's Avatar
 
Join Date: Aug 2005
Location: Australian in London
Age: 42
Posts: 12,601
You could have tested this out yourself in seconds...

Let's take an example... you have the following "3D Galax (1989)(Gremlin)[cr Codetapper][f AGA Codetapper].adf" and it's listed in the configuration file as:

Quote:
floppy0=.\Games\3D Galax\3D Galax (1989)(Gremlin)[cr Codetapper][f AGA Codetapper].adf
It will still work if you:

a) remove the .adf extension from the file.
b) remove the .adf extension from the configuration file line.

...but I don't really understand the reason for asking this? Why would you even do that and have to modify original filenames and extensions.

Last edited by DamienD; 09 November 2018 at 14:32.
DamienD is offline  
Old 09 November 2018, 14:49   #3
Foebane
Registered User
 
Join Date: Sep 2011
Location: Cardiff, UK
Age: 46
Posts: 1,337
I tried it out with one file, and whilst it recognised an .lha archive without the extension, it failed with a .7z.

The idea was to use a batch file to copy an Amiga file to a specific folder and filename, which could then be run with just one config file which points to that specific folder and filename, but archives and disk images have different extensions (and of course, data formats), and so it would be impractical to use this idea, if the extensions are different. The goal was to reduce the number of configs,but once again, multiple configs are best! (I've got loads of those myself now).

Just another daft idea in the mind of Foebane.

EDIT: If I come across as flippant and wasting people's time, I don't mean to do so, but it was an honest enquiry that I thought was best asked here.

@DamienD: Your advice, as ever, is always useful.

Last edited by Foebane; 09 November 2018 at 15:16.
Foebane is offline  
Old 09 November 2018, 17:01   #4
AMIGASYSTEM
Registered User
AMIGASYSTEM's Avatar
 
Join Date: Aug 2014
Location: Brindisi (Italy)
Posts: 3,773
Amiga side extensions are an option, unlike Windows AmigaOS recognizes files from within. If you use a hexadecimal editor you will notice in many files such as images, archives, sounds, but also in the executable windows you will find acronyms start file that helps to understand what type file is.
AMIGASYSTEM is offline  
Old 09 November 2018, 17:19   #5
Foebane
Registered User
 
Join Date: Sep 2011
Location: Cardiff, UK
Age: 46
Posts: 1,337
Quote:
Originally Posted by AMIGASYSTEM View Post
If you use a hexadecimal editor you will notice in many files such as images, archives, sounds, but also in the executable windows you will find acronyms start file that helps to understand what type file is.
I know, I myself have written programs that create image files using standard formats for DOS/Windows. I created a test image in the format I wanted to use, and then looked at the file header to see how it processed the following data. This was such a long time ago, and I think I had access to the information I needed, but it still worked out well.
Foebane is offline  
Old 09 November 2018, 18:22   #6
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 43
Posts: 22,021
Some file types have automatic detection, some don't. Some can't be autodetected. Don't depend on it.
Toni Wilen is online now  
Old 09 November 2018, 19:38   #7
Foebane
Registered User
 
Join Date: Sep 2011
Location: Cardiff, UK
Age: 46
Posts: 1,337
Quote:
Originally Posted by Toni Wilen View Post
Some file types have automatic detection, some don't. Some can't be autodetected. Don't depend on it.
I thought as much. Thanks for the clarification, Toni!
Foebane is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
TOME 4 and using extensions Brick Nash Coders. AMOS 2 31 May 2016 22:27
Small issue with default floppy image files extensions mark_k support.WinUAE 4 10 February 2012 19:46
Wanted AMOS Extensions TOME, MusiCRAFT (Originals) MadAngus MarketPlace 1 17 December 2011 22:24
"unknown" disk image extensions StingRay support.WinUAE 11 19 June 2009 16:55
uploading to the zone > file extensions Belgarath project.EAB 10 22 March 2002 20:31

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 22:04.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.
Page generated in 0.11036 seconds with 14 queries