Update of /cvsroot/vba/VisualBoyAdvance/src/sdl
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv1368/src/sdl
Modified Files:
SDL.cpp
Log Message:
Pokemonhacker:
Improved/corrected the GG and GS cheats handling.
Added support for the GS hardware rom bank switching.
Corrected a crash in loading GB savestates while in GBC mode.
Index: SDL.cpp
===================================================================
RCS file: /cvsroot/vba/VisualBoyAdvance/src/sdl/SDL.cpp,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** SDL.cpp 27 May 2006 14:47:33 -0000 1.12
--- SDL.cpp 6 Jun 2006 14:25:17 -0000 1.13
***************
*** 816,820 ****
struct stat buf;
! size_t len = strlen(dir);
char *p = dir + len - 1;
--- 816,820 ----
struct stat buf;
! int len = strlen(dir);
char *p = dir + len - 1;
***************
*** 839,843 ****
static char filebuffer[2048];
! size_t len = strlen(name);
char *p = name + len - 1;
--- 839,843 ----
static char filebuffer[2048];
! int len = strlen(name);
char *p = name + len - 1;
***************
*** 2219,2225 ****
if(!failed) {
gbGetHardwareType();
!
! // used for the handling of the gb Boot Rom
! if (gbHardware & 5)
{
char tempName[0x800];
--- 2219,2225 ----
if(!failed) {
gbGetHardwareType();
!
! // used for the handling of the gb Boot Rom
! if (gbHardware & 5)
{
char tempName[0x800];
***************
*** 2284,2288 ****
}
} else {
! cartridgeType = IMAGE_GBA;
strcpy(filename, "gnu_stub");
rom = (u8 *)malloc(0x2000000);
--- 2284,2288 ----
}
} else {
! cartridgeType = 0;
strcpy(filename, "gnu_stub");
rom = (u8 *)malloc(0x2000000);
|