mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
1cdf1c071f
- Switch to USES=localbase - Add LICENSE: GPLv2+ for VBA code, LGPL21 for bundled libresample code and NONE for playgsf code, as no license is specified neither for it nor for code it's based on (http://www.caitsith2.com/gsf/) PR: 214653 Submitted by: amdmi3 Reported by: jbeich
31 lines
965 B
C++
31 lines
965 B
C++
--- VBA/Util.cpp.orig 2016-11-24 13:15:44 UTC
|
|
+++ VBA/Util.cpp
|
|
@@ -917,7 +917,7 @@ bool utilIsGSF(const char * file)
|
|
|
|
|
|
if(strlen(file) > 4) {
|
|
- char *p = strrchr(file,'.');
|
|
+ const char *p = strrchr(file,'.');
|
|
|
|
if(p != NULL) {
|
|
if(_stricmp(p, ".gsf") == 0)
|
|
@@ -934,7 +934,7 @@ bool utilIsGBAImage(const char * file)
|
|
{
|
|
cpuIsMultiBoot = false;
|
|
if(strlen(file) > 4) {
|
|
- char * p = strrchr(file,'.');
|
|
+ const char * p = strrchr(file,'.');
|
|
|
|
if(p != NULL) {
|
|
//if(_stricmp(p, ".gba") == 0)
|
|
@@ -1484,7 +1484,8 @@ void utilWriteData(gzFile gzFile, variab
|
|
|
|
gzFile utilGzOpen(const char *file, const char *mode)
|
|
{
|
|
- utilGzWriteFunc = (int (ZEXPORT *)(void *,void * const, unsigned int))gzwrite;
|
|
+ // utilGzWriteFunc = (int (ZEXPORT *)(void *,void * const, unsigned int))gzwrite;
|
|
+ utilGzWriteFunc = (int (ZEXPORT *)(gzFile_s*, void * const, unsigned int))gzwrite;
|
|
utilGzReadFunc = gzread;
|
|
utilGzCloseFunc = gzclose;
|
|
|