Previous Thread
Next Thread
Print Thread
Page 1 of 2 1 2
Joined: May 1999
Posts: 613
Likes: 1
Carbon Online Content OP
Senior Member
OP Online Content
Senior Member
Joined: May 1999
Posts: 613
Likes: 1
How can I put the contents of a folder on macOS onto a PC disk image file for use in MAME?
I tried using an existing image file, mount it in the Finder, deleting all its contents and then copying the files over but the Finder throws a -36 error for many files.

Joined: Mar 2001
Posts: 17,137
Likes: 163
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 17,137
Likes: 163
What version of macOS? Newer versions dropped support for HFS entirely, and before that it was read-only.

Some methods I've tried that work for me are listed on the wiki: https://wiki.mamedev.org/index.php/Driver:Mac_68K#How_do_I_get_files_into_the_emulation?

Joined: May 1999
Posts: 613
Likes: 1
Carbon Online Content OP
Senior Member
OP Online Content
Senior Member
Joined: May 1999
Posts: 613
Likes: 1
I'm using the latest macOS. I forgot to specify in my post that by PC disk I meant a DOS disk, not macOS or others.

Joined: Mar 2001
Posts: 17,137
Likes: 163
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 17,137
Likes: 163
Oh, a DOS disk? On Windows or via CrossOver the shareware "WinImage" program is good for that, but it oughta be possible just natively with macOS's disk tools too.

Joined: Feb 2008
Posts: 157
Likes: 6
G
Senior Member
Offline
Senior Member
G
Joined: Feb 2008
Posts: 157
Likes: 6
I used Winimage a few days ago. It's a bit quirky.
First go to the file menu and select New then select the floppy size you want (i..e 1.44MB).
Then go to the top menu > Image > Inject
Navigate to the files you want to add, select all of them and click Open
It will ask to confirm injecting the files. Click yes and it will make the image with the files.
Save it as .IMA and exit.


Dumping ROMs for MAME since 1999!
https://gurudumps.otenko.com
Joined: May 1999
Posts: 613
Likes: 1
Carbon Online Content OP
Senior Member
OP Online Content
Senior Member
Joined: May 1999
Posts: 613
Likes: 1
I created a simple disk image (containing only DOS4GW.EXE) as you described, but trying to use it in MAME 0.262 results in the following error message:

Code
Fatal error: Device 3.5" high density floppy drive load failed: Unable to identify image file format
-[_MTLCommandEncoder dealloc]:131: failed assertion `Command encoder released without endEncoding'
/Applications/Emulation/MAME/Machines/Microsoft DOS 6 Two Floppy.command: line 5: 15284 Abort trap: 6           
./MAME -window ct486 -ramsize 32M -flop1 "./Disks/Microsoft/DOS_6.22.img" -flop2 "./Disks/Microsoft/DOS4GW.ima"

Joined: May 1999
Posts: 613
Likes: 1
Carbon Online Content OP
Senior Member
OP Online Content
Senior Member
Joined: May 1999
Posts: 613
Likes: 1
I renamed the extension from .ima to .img but MAME still emits an error. The image mounts perfectly in macOS Finder though, so I don't think there is a problem with the file or WinImage.

Joined: Mar 2001
Posts: 17,137
Likes: 163
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 17,137
Likes: 163
I'm not familiar with the PC disk recognition heuristics but that should work. Can you put the image somewhere downloadable?

Joined: May 1999
Posts: 613
Likes: 1
Carbon Online Content OP
Senior Member
OP Online Content
Senior Member
Joined: May 1999
Posts: 613
Likes: 1
Sure, here it is: PC disk image

Joined: Mar 2001
Posts: 17,137
Likes: 163
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 17,137
Likes: 163
That image is 2.88MB, not 1.44. That would be why MAME isn't recognizing it.

Page 1 of 2 1 2

Moderated by  R. Belmont 

Link Copied to Clipboard
Who's Online Now
3 members (Luengo, belegdol, Golden Child), 35 guests, and 4 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,273
Posts121,387
Members5,064
Most Online1,283
Dec 21st, 2022
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Forum hosted by www.retrogamesformac.com