wok-current annotate visualboyadvance/stuff/1.7.2-glibc.patch @ rev 8358

Up: mercurial to 1.7.5.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Feb 03 15:58:22 2011 +0000 (2011-02-03)
parents
children
rev   line source
gokhlayeh@7031 1 --- src/GBA.cpp
gokhlayeh@7031 2 +++ src/GBA.cpp
gokhlayeh@7031 3 @@ -1130,7 +1130,7 @@
gokhlayeh@7031 4 bool CPUIsZipFile(const char * file)
gokhlayeh@7031 5 {
gokhlayeh@7031 6 if(strlen(file) > 4) {
gokhlayeh@7031 7 - char * p = strrchr(file,'.');
gokhlayeh@7031 8 + const char * p = strrchr(file,'.');
gokhlayeh@7031 9
gokhlayeh@7031 10 if(p != NULL) {
gokhlayeh@7031 11 if(_stricmp(p, ".zip") == 0)
gokhlayeh@7031 12 @@ -1145,7 +1145,7 @@
gokhlayeh@7031 13 {
gokhlayeh@7031 14 cpuIsMultiBoot = false;
gokhlayeh@7031 15 if(strlen(file) > 4) {
gokhlayeh@7031 16 - char * p = strrchr(file,'.');
gokhlayeh@7031 17 + const char * p = strrchr(file,'.');
gokhlayeh@7031 18
gokhlayeh@7031 19 if(p != NULL) {
gokhlayeh@7031 20 if(_stricmp(p, ".gba") == 0)
gokhlayeh@7031 21 @@ -1169,7 +1169,7 @@
gokhlayeh@7031 22 bool CPUIsGBABios(const char * file)
gokhlayeh@7031 23 {
gokhlayeh@7031 24 if(strlen(file) > 4) {
gokhlayeh@7031 25 - char * p = strrchr(file,'.');
gokhlayeh@7031 26 + const char * p = strrchr(file,'.');
gokhlayeh@7031 27
gokhlayeh@7031 28 if(p != NULL) {
gokhlayeh@7031 29 if(_stricmp(p, ".gba") == 0)
gokhlayeh@7031 30 @@ -1189,7 +1189,7 @@
gokhlayeh@7031 31 bool CPUIsELF(const char *file)
gokhlayeh@7031 32 {
gokhlayeh@7031 33 if(strlen(file) > 4) {
gokhlayeh@7031 34 - char * p = strrchr(file,'.');
gokhlayeh@7031 35 + const char * p = strrchr(file,'.');
gokhlayeh@7031 36
gokhlayeh@7031 37 if(p != NULL) {
gokhlayeh@7031 38 if(_stricmp(p, ".elf") == 0)
gokhlayeh@7031 39 --- src/Util.cpp
gokhlayeh@7031 40 +++ src/Util.cpp
gokhlayeh@7031 41 @@ -478,7 +478,7 @@
gokhlayeh@7031 42 {
gokhlayeh@7031 43 cpuIsMultiBoot = false;
gokhlayeh@7031 44 if(strlen(file) > 4) {
gokhlayeh@7031 45 - char * p = strrchr(file,'.');
gokhlayeh@7031 46 + const char * p = strrchr(file,'.');
gokhlayeh@7031 47
gokhlayeh@7031 48 if(p != NULL) {
gokhlayeh@7031 49 if(_stricmp(p, ".gba") == 0)
gokhlayeh@7031 50 @@ -502,7 +502,7 @@
gokhlayeh@7031 51 bool utilIsGBImage(const char * file)
gokhlayeh@7031 52 {
gokhlayeh@7031 53 if(strlen(file) > 4) {
gokhlayeh@7031 54 - char * p = strrchr(file,'.');
gokhlayeh@7031 55 + const char * p = strrchr(file,'.');
gokhlayeh@7031 56
gokhlayeh@7031 57 if(p != NULL) {
gokhlayeh@7031 58 if(_stricmp(p, ".gb") == 0)
gokhlayeh@7031 59 @@ -522,7 +522,7 @@
gokhlayeh@7031 60 bool utilIsZipFile(const char *file)
gokhlayeh@7031 61 {
gokhlayeh@7031 62 if(strlen(file) > 4) {
gokhlayeh@7031 63 - char * p = strrchr(file,'.');
gokhlayeh@7031 64 + const char * p = strrchr(file,'.');
gokhlayeh@7031 65
gokhlayeh@7031 66 if(p != NULL) {
gokhlayeh@7031 67 if(_stricmp(p, ".zip") == 0)
gokhlayeh@7031 68 @@ -552,7 +552,7 @@
gokhlayeh@7031 69 bool utilIsGzipFile(const char *file)
gokhlayeh@7031 70 {
gokhlayeh@7031 71 if(strlen(file) > 3) {
gokhlayeh@7031 72 - char * p = strrchr(file,'.');
gokhlayeh@7031 73 + const char * p = strrchr(file,'.');
gokhlayeh@7031 74
gokhlayeh@7031 75 if(p != NULL) {
gokhlayeh@7031 76 if(_stricmp(p, ".gz") == 0)