From ca1d98a7baf7d650c02e027c6c15dfc8eeeb171d Mon Sep 17 00:00:00 2001 From: faketruth Date: Sun, 30 Oct 2011 11:41:18 +0000 Subject: Changed long to long long so it works fine on 32bit systems Added printing for Byte array tags (the length is incorrect though) Structured the tags enums a bit more In cConvert.cpp the correct compounds are opened before accessing data Added VS2010 project so the converter can be compiled through VS2010 git-svn-id: http://mc-server.googlecode.com/svn/trunk@27 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- converter/cNBTData.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'converter/cNBTData.h') diff --git a/converter/cNBTData.h b/converter/cNBTData.h index a0a40e68b..2ab5b0e21 100644 --- a/converter/cNBTData.h +++ b/converter/cNBTData.h @@ -20,14 +20,16 @@ public: #endif { TAG_End = 0, - TAG_Byte, - TAG_Short, - TAG_Int, - TAG_Long, + TAG_Byte = 1, + TAG_Short = 2, + TAG_Int = 3, + TAG_Long = 4, + TAG_Float = 5, + TAG_Double = 6, TAG_ByteArray = 7, - TAG_String, - TAG_List, - TAG_Compound, + TAG_String = 8, + TAG_List = 9, + TAG_Compound = 10, TAG_NumTags // Not a real tag, but contains number of tags }; @@ -167,7 +169,7 @@ private: std::string ReadName(); char ReadByte(); int ReadInt(); - long ReadLong(); + long long ReadLong(); cNBTCompound* m_CurrentCompound; -- cgit v1.2.3