|
|
Joined: May 1999
Posts: 615 Likes: 1
Senior Member
|
OP
Senior Member
Joined: May 1999
Posts: 615 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,179 Likes: 211
Very Senior Member
|
Very Senior Member
Joined: Mar 2001
Posts: 17,179 Likes: 211 |
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: 615 Likes: 1
Senior Member
|
OP
Senior Member
Joined: May 1999
Posts: 615 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,179 Likes: 211
Very Senior Member
|
Very Senior Member
Joined: Mar 2001
Posts: 17,179 Likes: 211 |
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: 166 Likes: 10
Senior Member
|
Senior Member
Joined: Feb 2008
Posts: 166 Likes: 10 |
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.
|
|
|
|
Joined: May 1999
Posts: 615 Likes: 1
Senior Member
|
OP
Senior Member
Joined: May 1999
Posts: 615 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: 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: 615 Likes: 1
Senior Member
|
OP
Senior Member
Joined: May 1999
Posts: 615 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,179 Likes: 211
Very Senior Member
|
Very Senior Member
Joined: Mar 2001
Posts: 17,179 Likes: 211 |
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: 615 Likes: 1
Senior Member
|
OP
Senior Member
Joined: May 1999
Posts: 615 Likes: 1 |
Sure, here it is: PC disk image
|
|
|
|
Joined: Mar 2001
Posts: 17,179 Likes: 211
Very Senior Member
|
Very Senior Member
Joined: Mar 2001
Posts: 17,179 Likes: 211 |
That image is 2.88MB, not 1.44. That would be why MAME isn't recognizing it.
|
|
|
|
Joined: May 1999
Posts: 615 Likes: 1
Senior Member
|
OP
Senior Member
Joined: May 1999
Posts: 615 Likes: 1 |
Ah ok, works fine in Boxer, though. Thanks to all for suggesting WinImage.
|
|
|
Forums9
Topics9,308
Posts121,683
Members5,069
|
Most Online1,283 Dec 21st, 2022
|
|
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!
|
|
|
|
|