Welcome to Emulationworld

Forum Index | FAQ | New User | Login | Search

Make a New PostPrevious ThreadView All ThreadsNext ThreadShow in Flat Mode*


SubjectRe: Compiling MAMEBoy part 2 Reply to this message
Posted byMarconelly!
Posted on02/27/01 04:43 PM



> I got MAMEBoy to compile and run. Great fun, now I can show
> a colleague of mine a full-speed Tempest with sound!
> (MAMECE runs Tempest but the sound is...of dubious quality).
>
> At first, I had been trying to replace the GAMEX calls
> with GAPI calls because the linker was dying on some
> GAMEX call and I thought, hey, it should probably be
> GAPI anyway.

No, as it is, MAMEBoy uses GameX with some tricks to make it work on EM-500 / E-125



> But that didn't work, so I looked more closely at the
> linker error and it was only failing to link to the
> OpenButtons function ("unresolved external blah blah blah").
>
> Changing the HWND in that function (in the gamex.h file) to
> a HANDLE fixed it so I could compile and run. I am happy
> to say it runs Tempest just fine (I uncommented Tempest in
> the driver.c line in core).
>
> BUT...I can't get the menu to show up. I have a PocketPC
> (Casio E-125) and it looks like MAMEBoy does a PsPC (WinCE
> 2.11) style menu thing...I think...

That's right. MAMEBoy is a 2.11 application. Which compiler have you used to compile it? Embedded Tools or a regular VC setup?



>anyway, the MAMEBoy I downloaded displays the menu at the >top of the screen and somehow manages to move Windows CE's >taskbar to the bottom of the screen. The MAMEBoy I built >does neither - I don't get menus, and parts of the taskbar >get overwritten. I poked around in the Embedded Visual >help files and the platform SDK but couldn't find any way >to move the taskbar,
> so I assume it's some sort of undocumented hack or registry
> setting...

Taskbar on the bottom is the standard 2.11 feature. Not tricks and hacks there. Menu on the top is also standard for 2.11

What you need to do is to move game display down (it's now centered as if the taskbar is down) To do that, look at the
GDIDisplay.c

Look for the code that looks like this:
//Center game display vertically on screen (if it's smaller than the screen)
if (This.m_DrawRect.bottom < 296 )
{
// This.m_DrawRect.top = ( 316 - This.m_DrawRect.bottom) / 2;
This.m_DrawRect.top = ( 296 - This.m_DrawRect.bottom) / 2;
This.m_DrawRect.bottom += This.m_DrawRect.top;
}

and play around with it. Shouldn't be too complicated. I'm dying to know how did you make it use gapi instead of gamex! Is there any speed increase comparing to a standard mameboy for E-125 that you can get from my site? Can you please send me your source with some brief explanation what you changed in it to make it use gapi?

my e-mail is radiosity@sympatico.ca



-
Entire Thread
Subject  Posted byPosted On
*Compiling MAMEBoy part 2  cps4602/27/01 03:17 PM
..Re: Compiling MAMEBoy part 2  Marconelly!02/27/01 04:43 PM
..*Re: Compiling MAMEBoy part 2  cps4602/28/01 02:35 AM
..*Re: Compiling MAMEBoy part 2  cps4602/28/01 02:32 AM
...*Re: Compiling MAMEBoy part 2  Marconelly!02/28/01 09:31 AM
....*Re: Compiling MAMEBoy part 2  cps4602/28/01 05:40 PM