1
0
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:
Accelerator 2024-05-15 16:00:07 +03:00 committed by GitHub
parent 5e238727e6
commit ac4b9c7be2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -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);

View File

@ -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: