Previous Thread
Next Thread
Print Thread
Page 2 of 2 1 2
Joined: Sep 2004
Posts: 392
Likes: 4
A
Senior Member
Senior Member
A Offline
Joined: Sep 2004
Posts: 392
Likes: 4
Quote
Originally posted by paranoid:
However, the binary wouldn't find roms anywhere.. It would open up the window (or screen) briefly; the time was dependant on the size of the rom. (larger roms would show the percentage longer as if it were loading more) With a zipped rom in the folder, it would tell me the zip was corrupt (but same zip would work fine with regular mame) and list the files it couldn't find. Unzipped and just in a folder, it wouldn't tell me the zip was corrupted (sort of obviously), but still listed the files it couldn't find.
Looks like Arbee forgot to add the code that adds the O_BINARY flag on the open call if there's a "b" in the mame_fopen parameter. The *nix systems must open as binary by default, but under mingw it doesn't.

Joined: Jul 2006
Posts: 4
E
Junior Member
Junior Member
E Offline
Joined: Jul 2006
Posts: 4
It's probably not there because O_BINARY doesn't exist on *nix. If it was added it would have to be guarded by an #ifdef or similar.

Joined: Mar 2001
Posts: 17,249
Likes: 265
R
Very Senior Member
Very Senior Member
R Offline
Joined: Mar 2001
Posts: 17,249
Likes: 265
Aaron's of course correct (as is Ex-Cyber - it's not there by default because *ix (including the Mac) doesn't have the concept of the operating system trying to interpret line endings). There's one or two other mistakes in fileio.c relative to Windows that I did fix, but I missed the most important one smile

ETA: I'm a real menace. If you aren't liking the performance, find this in the makefile:

CFLAGS += -DNDEBUG \
$(ARCH) \
-Wall \

And add a -O3 somewhere, like this:

CFLAGS += -DNDEBUG \
-O3 \
$(ARCH) \
-Wall \

The funny thing is none of the 3 Intel OSes showed a severe degredation from this, but my G5 really suffered - it's 2 GHz and couldn't run konamigx games full speed.

Page 2 of 2 1 2

Moderated by  R. Belmont 

Link Copied to Clipboard
Who's Online Now
2 members (Dorando, Pernod), 99 guests, and 0 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,345
Posts122,343
Members5,082
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
Powered by UBB.threads™ PHP Forum Software 8.0.0