- fix for issue 772
- fixed some issues in zstream that prevented to use "getline" in zipped streams - added a "pooled buffers" system to keep a cache of file descriptors. This is potentially dangerous though, but shaves several seconds of loading time on the PSP. If problems arise on other platforms I'll make it a compilation parameter - gracefully fail when calling manacost information on a not properly initialized mana cost
This commit is contained in:
@@ -394,11 +394,9 @@ void GameStateMenu::listPrimitives()
|
||||
{
|
||||
string filename = "sets/primitives/";
|
||||
filename.append(primitiveFiles[i]);
|
||||
izfstream file;
|
||||
if (! JFileSystem::GetInstance()->openForRead(file, filename))
|
||||
continue;
|
||||
|
||||
file.close();
|
||||
if (! JFileSystem::GetInstance()->FileExists(filename))
|
||||
continue;
|
||||
primitives.push_back(filename);
|
||||
}
|
||||
primitivesLoadCounter = 0;
|
||||
|
||||
Reference in New Issue
Block a user