Abgeschickt von ukslim am 19 Oktober, 2000 um 16:56:38:
Antwort auf: Re: MAME / dreamlib von ukslim am 19 Oktober, 2000 um 16:19:58:
I said...
: I *haven't* looked at
: the MAME source in any detail, but I have to assume
: that the system-dependent bits are reasonably well
: separated from the rest. I don't have the skills
: or the time to do any hacking myself, but I might
: look into what a MAME port entails and let you know
: what I find out. There are many ports of MAME to
: different display and input technologies (X, SVGAlib,
: GGI, WinCE, DirectX etc.) so I'm guessing it's
: doable.
: I'll let you know...
Hmmm, I've just had a *very* quick delve into the
xmame source tree, and while it's obviously full
of a lot of code that's too advanced for the likes
of me, I can see that it's quite well seperated, and
it's very well commented (more than I can say for
OpenSSL, which is what I'm looking at in the name of
work at the moment!).
All the drivers are in a "drivers" directory, and
just as a guess, I reckon you could remove some of
the drivers to keep the size of the executable down.
All system dependent stuff is in a subdirectory, e.g.
the MSDOS stuff is in src/msdos, DOS video is src/msdos/video.c,
that kind of thing.
If you look at the UNIX stuff, in src/unix, there's a
video-drivers dir, a sound-drivers dir, and a
joystick-drivers dir. Inside video-drivers there is
a seperate .c file for each of X11, GGI, SVGAlib,
GLmame etc. I'm sure one of these could be adapted
for Ngine. In the makefile, you can choose which
video/sound/joystick drivers you want compiled in.
Incidentally, there's a "nosound" dummy sound driver
included.
So: don't necessarily be put off by the size of MAME:
most of it shouldn't need changing. Aw, listen to me: It
looks like I'm begging. Please ignore me for the lamer
with too little time and expertise to do my own coding
that I am ;) DGen would be lovely. In fact, SNES9X
is lovely enough in itself. Good work!