Author: pebender
Date: Tue Jun 23 10:10:39 2009
New Revision: 5030
Added:
trunk/gar-minimyth/script/emulators/VisualBoyAdvance/files/VisualBoyAdvance-1.7.2-strrchr.patch
Modified:
trunk/gar-minimyth/script/emulators/VisualBoyAdvance/Makefile
trunk/gar-minimyth/script/emulators/VisualBoyAdvance/checksums
Log:
- Patched emulators/VisualBoyAdvance to work correctly with strrchr
prototype.
Modified: trunk/gar-minimyth/script/emulators/VisualBoyAdvance/Makefile
==============================================================================
--- trunk/gar-minimyth/script/emulators/VisualBoyAdvance/Makefile
(original)
+++ trunk/gar-minimyth/script/emulators/VisualBoyAdvance/Makefile Tue Jun
23 10:10:39 2009
@@ -3,7 +3,7 @@
CATEGORIES = emulators
MASTER_SITES = http://easynews.dl.sourceforge.net/sourceforge/vba/
DISTFILES = $(GARNAME)-src-$(GARVERSION).tar.gz
-PATCHFILES = $(DISTNAME)-configure.patch $(DISTNAME)-x86_64.patch
+PATCHFILES = $(DISTNAME)-configure.patch $(DISTNAME)-strrchr.patch
$(DISTNAME)-x86_64.patch
LICENSE = GPL2
DESCRIPTION =
Modified: trunk/gar-minimyth/script/emulators/VisualBoyAdvance/checksums
==============================================================================
--- trunk/gar-minimyth/script/emulators/VisualBoyAdvance/checksums
(original)
+++ trunk/gar-minimyth/script/emulators/VisualBoyAdvance/checksums Tue Jun
23 10:10:39 2009
@@ -1,3 +1,4 @@
cc02339e3fd8efd9f23121b0a2f81fd8
download/VisualBoyAdvance-src-1.7.2.tar.gz
5bee757f7322ca1a3a712beb11a19a72
download/VisualBoyAdvance-1.7.2-configure.patch
+fb31339e09e5d4b4e752a287fd8c7c3f
download/VisualBoyAdvance-1.7.2-strrchr.patch
b17609a0cfd5b744f3cabdeab34d04f4
download/VisualBoyAdvance-1.7.2-x86_64.patch
Added:
trunk/gar-minimyth/script/emulators/VisualBoyAdvance/files/VisualBoyAdvance-1.7.2-strrchr.patch
==============================================================================
--- (empty file)
+++
trunk/gar-minimyth/script/emulators/VisualBoyAdvance/files/VisualBoyAdvance-1.7.2-strrchr.patch
Tue Jun 23 10:10:39 2009
@@ -0,0 +1,99 @@
+diff -Naur VisualBoyAdvance-1.7.2-old/src/gb/GB.cpp
VisualBoyAdvance-1.7.2-new/src/gb/GB.cpp
+--- VisualBoyAdvance-1.7.2-old/src/gb/GB.cpp 2004-05-13 12:35:26.000000000
-0700
++++ VisualBoyAdvance-1.7.2-new/src/gb/GB.cpp 2009-06-23 10:06:41.000000000
-0700
+@@ -567,7 +567,7 @@
+ bool gbIsGameboyRom(char * file)
+ {
+ if(strlen(file) > 4) {
+- char * p = strrchr(file,'.');
++ const char * p = strrchr(file,'.');
+
+ if(p != NULL) {
+ if(_stricmp(p, ".gb") == 0)
+diff -Naur VisualBoyAdvance-1.7.2-old/src/GBA.cpp
VisualBoyAdvance-1.7.2-new/src/GBA.cpp
+--- VisualBoyAdvance-1.7.2-old/src/GBA.cpp 2004-05-13 07:37:59.000000000
-0700
++++ VisualBoyAdvance-1.7.2-new/src/GBA.cpp 2009-06-23 10:04:09.000000000
-0700
+@@ -1130,7 +1130,7 @@
+ bool CPUIsZipFile(const char * file)
+ {
+ if(strlen(file) > 4) {
+- char * p = strrchr(file,'.');
++ const char * p = strrchr(file,'.');
+
+ if(p != NULL) {
+ if(_stricmp(p, ".zip") == 0)
+@@ -1145,7 +1145,7 @@
+ {
+ cpuIsMultiBoot = false;
+ if(strlen(file) > 4) {
+- char * p = strrchr(file,'.');
++ const char * p = strrchr(file,'.');
+
+ if(p != NULL) {
+ if(_stricmp(p, ".gba") == 0)
+@@ -1169,7 +1169,7 @@
+ bool CPUIsGBABios(const char * file)
+ {
+ if(strlen(file) > 4) {
+- char * p = strrchr(file,'.');
++ const char * p = strrchr(file,'.');
+
+ if(p != NULL) {
+ if(_stricmp(p, ".gba") == 0)
+@@ -1189,7 +1189,7 @@
+ bool CPUIsELF(const char *file)
+ {
+ if(strlen(file) > 4) {
+- char * p = strrchr(file,'.');
++ const char * p = strrchr(file,'.');
+
+ if(p != NULL) {
+ if(_stricmp(p, ".elf") == 0)
+diff -Naur VisualBoyAdvance-1.7.2-old/src/Util.cpp
VisualBoyAdvance-1.7.2-new/src/Util.cpp
+--- VisualBoyAdvance-1.7.2-old/src/Util.cpp 2004-05-20 10:42:37.000000000
-0700
++++ VisualBoyAdvance-1.7.2-new/src/Util.cpp 2009-06-23 10:05:44.000000000
-0700
+@@ -478,7 +478,7 @@
+ {
+ cpuIsMultiBoot = false;
+ if(strlen(file) > 4) {
+- char * p = strrchr(file,'.');
++ const char * p = strrchr(file,'.');
+
+ if(p != NULL) {
+ if(_stricmp(p, ".gba") == 0)
+@@ -502,7 +502,7 @@
+ bool utilIsGBImage(const char * file)
+ {
+ if(strlen(file) > 4) {
+- char * p = strrchr(file,'.');
++ const char * p = strrchr(file,'.');
+
+ if(p != NULL) {
+ if(_stricmp(p, ".gb") == 0)
+@@ -522,7 +522,7 @@
+ bool utilIsZipFile(const char *file)
+ {
+ if(strlen(file) > 4) {
+- char * p = strrchr(file,'.');
++ const char * p = strrchr(file,'.');
+
+ if(p != NULL) {
+ if(_stricmp(p, ".zip") == 0)
+@@ -537,7 +537,7 @@
+ bool utilIsRarFile(const char *file)
+ {
+ if(strlen(file) > 4) {
+- char * p = strrchr(file,'.');
++ const char * p = strrchr(file,'.');
+
+ if(p != NULL) {
+ if(_stricmp(p, ".rar") == 0)
+@@ -552,7 +552,7 @@
+ bool utilIsGzipFile(const char *file)
+ {
+ if(strlen(file) > 3) {
+- char * p = strrchr(file,'.');
++ const char * p = strrchr(file,'.');
+
+ if(p != NULL) {
+ if(_stricmp(p, ".gz") == 0)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"minimyth-commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/minimyth-commits?hl=en
-~----------~----~----~----~------~----~------~--~---