From 2c3d9333496aa235ec6789bc6bf4f5c5396c6f91 Mon Sep 17 00:00:00 2001 From: Mattes D Date: Fri, 27 Nov 2015 09:29:13 +0100 Subject: Added more details to the cubeset format documentation. --- src/Generating/PrefabPiecePool.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Generating/PrefabPiecePool.cpp b/src/Generating/PrefabPiecePool.cpp index d4235f9dd..e1bb9f684 100644 --- a/src/Generating/PrefabPiecePool.cpp +++ b/src/Generating/PrefabPiecePool.cpp @@ -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); -- cgit v1.2.3