Fix warning errors in file.cpp line 245 and 262
This commit is contained in:
parent
3a0f215477
commit
726c838ead
|
@ -242,7 +242,7 @@ zpfail:
|
||||||
unzCloseCurrentFile(tz);
|
unzCloseCurrentFile(tz);
|
||||||
unzClose(tz);
|
unzClose(tz);
|
||||||
|
|
||||||
FCEUFILE *fceufp=fceufp = new FCEUFILE();
|
FCEUFILE *fceufp = new FCEUFILE();
|
||||||
fceufp->stream = ms;
|
fceufp->stream = ms;
|
||||||
fceufp->size = size;
|
fceufp->size = size;
|
||||||
return fceufp;
|
return fceufp;
|
||||||
|
@ -259,7 +259,7 @@ FCEUFILE * FCEU_fopen(const char *path, const char *ipsfn, char *mode, char *ext
|
||||||
|
|
||||||
bool read = (std::string)mode == "rb";
|
bool read = (std::string)mode == "rb";
|
||||||
bool write = (std::string)mode == "wb";
|
bool write = (std::string)mode == "wb";
|
||||||
if(read&&write || (!read&&!write))
|
if((read&&write) || (!read&&!write))
|
||||||
{
|
{
|
||||||
FCEU_PrintError("invalid file open mode specified (only wb and rb are supported)");
|
FCEU_PrintError("invalid file open mode specified (only wb and rb are supported)");
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -764,4 +764,4 @@ void FCEUARCHIVEFILEINFO::FilterByExtension(const char** ext)
|
||||||
this->erase(begin()+i);
|
this->erase(begin()+i);
|
||||||
ok: ;
|
ok: ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue