HxC Floppy Drive Emulator

HxC Floppy Drive Emulator general information and news
It is currently Thu May 23, 2013 2:13 am

All times are UTC + 2 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: HxC convert and SAP files.
PostPosted: Mon Oct 24, 2011 8:37 pm 
Offline

Joined: Sun Mar 20, 2011 6:55 pm
Posts: 131
Some SAP files aren't recognised by the HxC converter (linux version). For example the MO5 DOS disk (rather annoying...)
http://www.logicielsmoto.com/download.php?fileid=488


Top
 Profile  
 
 Post subject: Re: HxC convert and SAP files.
PostPosted: Mon Oct 24, 2011 10:18 pm 
Offline
Site Admin

Joined: Fri Oct 20, 2006 12:12 am
Posts: 2842
Location: Paris
pulkomandy wrote:
Some SAP files aren't recognised by the HxC converter (linux version). For example the MO5 DOS disk (rather annoying...)
http://www.logicielsmoto.com/download.php?fileid=488


mhh ? works well with the windows version and with the cygwin compiled version.
what is your linux ?


Top
 Profile  
 
 Post subject: Re: HxC convert and SAP files.
PostPosted: Tue Oct 25, 2011 11:43 am 
Offline

Joined: Sat Jun 18, 2011 11:54 pm
Posts: 24
@pulko: maybe your patch have a side effect?


Top
 Profile  
 
 Post subject: Re: HxC convert and SAP files.
PostPosted: Tue Oct 25, 2011 8:23 pm 
Offline

Joined: Sun Mar 20, 2011 6:55 pm
Posts: 131
Running a 64-bit debian "sid".
Linux Akina 3.0.0-1-amd64 #1 SMP Sat Aug 27 16:21:11 UTC 2011 x86_64 GNU/Linux

With gcc 4.6.1.

Reverted the patch to make sure (with a make clean), and I get the same result...
The .fd version from dcmoto.free.fr doesn't work either.

I can provide an ssh access to this computer if you want to test.


Top
 Profile  
 
 Post subject: Re: HxC convert and SAP files.
PostPosted: Tue Oct 25, 2011 9:19 pm 
Offline

Joined: Sun Mar 20, 2011 6:55 pm
Posts: 131
SAP bug found:

...
strtolower(filepath)
...
sap_openarchive(filepath)

Sorry, but some of my files do have uppercase names.
Solution :
sap_openarchive(imgfile) // the original file name

Also noticed:
instead of using strlen + malloc + sprintf to copy a string, you can use strdup which does it in only one call.


Top
 Profile  
 
 Post subject: Re: HxC convert and SAP files.
PostPosted: Tue Oct 25, 2011 9:32 pm 
Offline
Site Admin

Joined: Fri Oct 20, 2006 12:12 am
Posts: 2842
Location: Paris
pulkomandy wrote:
SAP bug found:

...
strtolower(filepath)
...
sap_openarchive(filepath)

Sorry, but some of my files do have uppercase names.
Solution :
sap_openarchive(imgfile) // the original file name

Also noticed:
instead of using strlen + malloc + sprintf to copy a string, you can use strdup which does it in only one call.


oh ok i see ;)
will correct this on the trunk.


Top
 Profile  
 
 Post subject: Re: HxC convert and SAP files.
PostPosted: Tue Oct 25, 2011 10:35 pm 
Offline
Site Admin

Joined: Fri Oct 20, 2006 12:12 am
Posts: 2842
Location: Paris
Done !

Thanks for the debug session. (under windows/cygwin the file system isn't case sensitive... :roll: )


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 2 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group