mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-23 15:46:18 +00:00
Added: warning when we cannot open a big file
This commit is contained in:
parent
4e46616462
commit
f984c1a142
1 changed files with 2 additions and 0 deletions
|
@ -402,6 +402,8 @@ FILE* CBigFile::getFile (const std::string &sFileName, uint32 &rFileSize,
|
||||||
if(handle.File== NULL)
|
if(handle.File== NULL)
|
||||||
{
|
{
|
||||||
handle.File = fopen (bnp->BigFileName.c_str(), "rb");
|
handle.File = fopen (bnp->BigFileName.c_str(), "rb");
|
||||||
|
if (handle.File == NULL)
|
||||||
|
nlwarning ("bnp: can't fopen big file '%s' error %d '%s'", bnp->BigFileName.c_str(), errno, strerror(errno));
|
||||||
if (handle.File == NULL)
|
if (handle.File == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue