HxC convert and SAP files.

HxC Floppy emulator support for all others computers...
Post Reply
pulkomandy
Posts: 132
Joined: Sun Mar 20, 2011 6:55 pm

HxC convert and SAP files.

Post by pulkomandy »

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

Jeff
Site Admin
Posts: 8093
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: HxC convert and SAP files.

Post by Jeff »

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 ?

gilles
Posts: 35
Joined: Sat Jun 18, 2011 11:54 pm

Re: HxC convert and SAP files.

Post by gilles »

@pulko: maybe your patch have a side effect?

pulkomandy
Posts: 132
Joined: Sun Mar 20, 2011 6:55 pm

Re: HxC convert and SAP files.

Post by pulkomandy »

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.

pulkomandy
Posts: 132
Joined: Sun Mar 20, 2011 6:55 pm

Re: HxC convert and SAP files.

Post by pulkomandy »

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.

Jeff
Site Admin
Posts: 8093
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: HxC convert and SAP files.

Post by Jeff »

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.

Jeff
Site Admin
Posts: 8093
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: HxC convert and SAP files.

Post by Jeff »

Done !

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

Post Reply