1
0

Added more details to the cubeset format documentation.

This commit is contained in:
Mattes D
2015-11-27 09:29:13 +01:00
parent b8fbba5eb9
commit 2c3d933349
2 changed files with 35 additions and 6 deletions

View File

@@ -186,8 +186,8 @@ bool cPrefabPiecePool::LoadFromString(const AString & a_Contents, const AString
}
}
// Read the first 4 KiB of the file in order to auto-detect format:
auto Header = a_Contents.substr(0, 4096);
// Search the first 8 KiB of the file for the format auto-detection string:
auto Header = a_Contents.substr(0, 8192);
if (Header.find("CubesetFormatVersion =") != AString::npos)
{
return LoadFromCubeset(a_Contents, a_FileName, a_LogWarnings);