SDisk convert .dsk to .nic

7 posts / 0 new
Last post
Offline
Last seen: 2 months 1 week ago
Joined: Jul 5 2018 - 09:44
Posts: 2587
SDisk convert .dsk to .nic

I've built a few SDisk type floppy emulators and I am ready to test them...  But I am having issues converting .dsk images to .nic images.  I can run the Java converter on Linux but I can't figure out how to open a .dsk file with it.  I've tried dragging a file into it but nothing happens.  I also tried downloading the Mac version but it is a .sit archive and the version of Stuffit Expander 16 on the Apple App Store won't open it.  And I don't have Windows and even if I did, it says the binary is intended for XP...  so not sure it will even work.  I guess I can try running it on Wine.  If that fails maybe I can try re-compiling it on Linux using Winelib or something.

 

 

Offline
Last seen: 2 months 1 week ago
Joined: Jul 5 2018 - 09:44
Posts: 2587
Well, the Windows version

Well, the Windows version works with Wine from the command line.  Drag and drop doesn't work...  But I think I may be able to re-compile the source code on Linux and maybe make a better user interface for it.

 

Offline
Last seen: 2 months 1 week ago
Joined: Jul 5 2018 - 09:44
Posts: 2587
Well, I did a Q&D (extremely

Well, I did a Q&D (extremely dirty) conversion of the code from C++ to simple C and hacked out all the proprietary Windows API and GUI stuff and made two extremely simple command line utilities out of the code.

 

https://github.com/softwarejanitor/sdisk2util_linux

 

Read the warnings, it is extremely raw.  No bounds or error checking so if you feed it bad command line params or something it will probably seg fault.  If I get time later I may go back and make it a little more robust or maybe even write a little GUI for it in GTK+ or something.

 

 

Offline
Last seen: 1 day 16 hours ago
Joined: Apr 26 2016 - 08:36
Posts: 744
Try this.  It works for me.

Try this.  It works for me.

 

Package iconDSK_NIC.jar_.zip

Offline
Last seen: 2 months 1 week ago
Joined: Jul 5 2018 - 09:44
Posts: 2587
I was able to run the jar,

I was able to run the jar, but I was not able to get it to convert any files because drag and drop to it didn't seem to work.

 

Offline
Last seen: 2 months 1 week ago
Joined: Jul 5 2018 - 09:44
Posts: 2587
Actually now that I try it

Actually now that I try it again, it does in fact work...  it just doesn't really give any feedback that it is working...  Interesting.

 

 

 

The advantage to having a native command line version for Linux is that I can script it to convert a whole directory tree of .dsk images.

 

Offline
Last seen: 2 months 1 week ago
Joined: Jul 5 2018 - 09:44
Posts: 2587
The Java version works on

The Java version works on Linux, it just doesn't give much indication that the conversion is done.  But you can drag a .dsk from the file app on the Ubuntu deskop onto the ,dsk icon and it will make a .nic file in the same directory.

 

Log in or register to post comments