2016-11-24 15:18:52 +01:00
|
|
|
--- VBA/Util.cpp.orig 2016-11-24 13:15:44 UTC
|
2016-07-26 18:51:15 +02:00
|
|
|
+++ VBA/Util.cpp
|
2016-11-24 15:18:52 +01:00
|
|
|
@@ -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)
|
2016-07-26 18:51:15 +02:00
|
|
|
@@ -1484,7 +1484,8 @@ void utilWriteData(gzFile gzFile, variab
|
2013-04-03 10:37:47 +02:00
|
|
|
|
|
|
|
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;
|
|
|
|
|