Hey guys,
I've noticed strange error, fopen returns NULL after some successful attempts, so I don't get any file loaded.
I've tried to zero it, but no luck.
It's just
'str' is
Here's what I got after some attempts
![[Image: ce5a9e2dd128.png]](http://s020.radikal.ru/i723/1401/b8/ce5a9e2dd128.png)
.. as you see first time it's fine, but for second time it returns '?' at the end. ( or 377/377/ and another gibrish stuff )
I've noticed strange error, fopen returns NULL after some successful attempts, so I don't get any file loaded.
I've tried to zero it, but no luck.
Spoiler (Click to View)
Code:
filePtr = fopen(str("%s/Debug/textures/%s", fs_path->string, filename), "rb");'str' is
Code:
char* str( const char *msg, ... )
{
va_list argptr;
char text[1024];
va_start(argptr, msg);
vsnprintf(text, sizeof(text), msg, argptr);
va_end(argptr);
return text;
}Here's what I got after some attempts
![[Image: ce5a9e2dd128.png]](http://s020.radikal.ru/i723/1401/b8/ce5a9e2dd128.png)
.. as you see first time it's fine, but for second time it returns '?' at the end. ( or 377/377/ and another gibrish stuff )

