I've been trying for a bit to compile my modified VBA with no luck. It's having a lot of trouble with my version of Visual Studio (2005 beta2) and I'm rather sick of messing with it.
Any one out there half decent with C++ and feel like doing this?
gba.cpp line ~1773
find
internalRAM = (u8 *)calloc(1,0x8000);
replace
mapIRAM = CreateFileMapping((HANDLE)0xFFFFFFFF,NULL,PAGE_READWRITE, 0, 0x8000,"vbaIRAM");
internalRAM = (u8 *)MapViewOfFile(mapIRAM, FILE_MAP_WRITE, 0, 0, 0);
(Above is untested)
You'll also need to declear it (
HANDLE mapIRAM; in gba.h, and include windows.h there).
Some of my trouble:
- To build 2xSaImmx.asm, it assumes masmw.exe is in "c:\program files\nasm\" and that there's no spaces in the path to the .asm. I had to assemble it seperately from the build process.
- Wount build the DirectX headers.
- Needed to make all of the implicit 'const char *' to 'char *' convertions explicit.
- And plenty more!
Edit---
Oh, you may want to close the handle at some point, too, otherwise it will linger till you restart.