mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2024-12-23 01:59:43 +08:00
Update KeyValues binary types (#241)
* Update KeyValues binary types * Unused code
This commit is contained in:
parent
5e238727e6
commit
ac4b9c7be2
@ -204,6 +204,9 @@ public:
|
||||
TYPE_WSTRING,
|
||||
TYPE_COLOR,
|
||||
TYPE_UINT64,
|
||||
TYPE_COMPILED_INT_BYTE, // hack to collapse 1 byte ints in the compiled format
|
||||
TYPE_COMPILED_INT_0, // hack to collapse 0 in the compiled format
|
||||
TYPE_COMPILED_INT_1, // hack to collapse 1 in the compiled format
|
||||
TYPE_NUMTYPES,
|
||||
};
|
||||
types_t GetDataType(const char *keyName = NULL);
|
||||
|
@ -2310,6 +2310,7 @@ bool KeyValues::ReadAsBinary( CUtlBuffer &buffer )
|
||||
{
|
||||
dat->m_sValue = KVStringAlloc<char>(sizeof(uint64));
|
||||
*((double *)dat->m_sValue) = buffer.GetDouble();
|
||||
break;
|
||||
}
|
||||
|
||||
case TYPE_FLOAT:
|
||||
|
Loading…
Reference in New Issue
Block a user