updated on Fri Jan 13 04:01:25 UTC 2012
[aur-mirror.git] / playgsf / fixes.patch
blob894f8a4e67c3c1fefb2ad78c054d7e472ab6cd9c
1 diff a/VBA/GBA.cpp b/VBA/GBA.cpp
2 --- a/VBA/GBA.cpp
3 +++ b/VBA/GBA.cpp
4 @@ -1049,17 +1049,17 @@ int CPULoadRom(const char *szFile)
5 return 0;
7 } else*/
8 - int i;
9 + long i;
10 if(cpuIsMultiBoot)
12 rom = (u8 *)malloc(0x200);
13 loadedsize=0;
14 - i = (int)utilLoad(szFile,utilIsGBAImage,whereToLoad,size);
15 + i = (long)utilLoad(szFile,utilIsGBAImage,whereToLoad,size);
17 else
19 rom = utilLoad(szFile,utilIsGBAImage,whereToLoad,size);
20 - i = (int) rom;
21 + i = (long) rom;
24 //loadedsize = sizeof(*rom);
25 diff a/VBA/Util.cpp b/VBA/Util.cpp
26 --- a/VBA/Util.cpp
27 +++ b/VBA/Util.cpp
28 @@ -917,7 +917,7 @@ bool utilIsGSF(const char * file)
31 if(strlen(file) > 4) {
32 - char *p = strrchr(file,'.');
33 + const char *p = strrchr(file,'.');
35 if(p != NULL) {
36 if(_stricmp(p, ".gsf") == 0)
37 @@ -934,7 +934,7 @@ bool utilIsGBAImage(const char * file)
39 cpuIsMultiBoot = false;
40 if(strlen(file) > 4) {
41 - char * p = strrchr(file,'.');
42 + const char * p = strrchr(file,'.');
44 if(p != NULL) {
45 //if(_stricmp(p, ".gba") == 0)