mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-20 04:34:48 +00:00
ConsoleValue improvements
This commit is contained in:
parent
89b0c7f73b
commit
e28e24a802
|
|
@ -72,7 +72,7 @@ char* ConsoleValue::convertToBuffer() const
|
|||
|
||||
const char* ConsoleValue::getConsoleData() const
|
||||
{
|
||||
return Con::getData(type, ct->dataPtr, 0, ct->enumTable);
|
||||
return Con::getData(ct->consoleType, ct->dataPtr, 0, ct->enumTable);
|
||||
}
|
||||
|
||||
ConsoleDocFragment* ConsoleDocFragment::smFirst;
|
||||
|
|
|
|||
|
|
@ -128,6 +128,7 @@ enum ConsoleValueType
|
|||
|
||||
struct ConsoleValueConsoleType
|
||||
{
|
||||
S32 consoleType;
|
||||
void* dataPtr;
|
||||
EnumTable* enumTable;
|
||||
};
|
||||
|
|
@ -340,8 +341,8 @@ public:
|
|||
TORQUE_FORCEINLINE void setConsoleData(S32 consoleType, void* dataPtr, const EnumTable* enumTable)
|
||||
{
|
||||
cleanupData();
|
||||
type = ConsoleValueType::cvSTEntry;
|
||||
ct = new ConsoleValueConsoleType{ dataPtr, const_cast<EnumTable*>(enumTable) };
|
||||
type = ConsoleValueType::cvConsoleValueType;
|
||||
ct = new ConsoleValueConsoleType{ consoleType, dataPtr, const_cast<EnumTable*>(enumTable) };
|
||||
}
|
||||
|
||||
TORQUE_FORCEINLINE S32 getType() const
|
||||
|
|
|
|||
Loading…
Reference in a new issue