Przeglądaj źródła

Fixes issue with gameplay-encoder file header compatibility.

setaylor 13 lat temu
rodzic
commit
428e0a09c9

+ 1 - 1
gameplay-encoder/gameplay-bundle.txt

@@ -15,7 +15,7 @@ File Structure
 Section      Name            Type
 ------------------------------------------------------------------------------------------------------
 Header
-             Identifier      byte[9]     = { '«', 'G', 'P', 'B', '»', '\r', '\n', '\x1A', '\n' } 
+             Identifier      byte[9]     = { '\xAB', 'G', 'P', 'B', '\xBB', '\r', '\n', '\x1A', '\n' } 
              Version         byte[2]     = { 1, 1 }
              References      Reference[]
 Data

+ 1 - 1
gameplay-encoder/src/GPBFile.cpp

@@ -67,7 +67,7 @@ bool GPBFile::saveBinary(const std::string& filepath)
     size_t n = 0;
 
     // identifier
-    char identifier[] = { '�', 'G', 'P', 'B', '�', '\r', '\n', '\x1A', '\n' };
+    char identifier[] = { '\xAB', 'G', 'P', 'B', '\xBB', '\r', '\n', '\x1A', '\n' };
     n = fwrite(identifier, 1, sizeof(identifier), _file);
     if (n != sizeof(identifier))
     {