mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-24 09:03:48 +00:00
Merge branch 'Preview4_0_DevHead' into tsneo
# Conflicts: # Engine/source/console/consoleInternal.cpp
This commit is contained in:
commit
acde0c3f0b
17 changed files with 96 additions and 20 deletions
|
|
@ -447,7 +447,7 @@ bool CodeBlock::read(StringTableEntry fileName, Stream &st)
|
|||
{
|
||||
U32 ip;
|
||||
st.read(&ip);
|
||||
#ifdef TORQUE_CPU_X64
|
||||
#if defined(TORQUE_CPU_X64) || defined(TORQUE_CPU_ARM64)
|
||||
*(U64*)(code + ip) = (U64)ste;
|
||||
#else
|
||||
code[ip] = *((U32 *)&ste);
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ namespace Compiler
|
|||
|
||||
void evalSTEtoCode(StringTableEntry ste, U32 ip, U32 *ptr)
|
||||
{
|
||||
#ifdef TORQUE_CPU_X64
|
||||
#if defined(TORQUE_CPU_X64) || defined(TORQUE_CPU_ARM64)
|
||||
*(U64*)(ptr) = (U64)ste;
|
||||
#else
|
||||
*ptr = (U32)ste;
|
||||
|
|
|
|||
|
|
@ -237,7 +237,7 @@ namespace Compiler
|
|||
|
||||
inline StringTableEntry CodeToSTE(U32 *code, U32 ip)
|
||||
{
|
||||
#ifdef TORQUE_CPU_X64
|
||||
#if defined(TORQUE_CPU_X64) || defined(TORQUE_CPU_ARM64)
|
||||
return (StringTableEntry)(*((U64*)(code + ip)));
|
||||
#else
|
||||
return (StringTableEntry)(*(code + ip));
|
||||
|
|
|
|||
|
|
@ -1401,7 +1401,7 @@ ConsoleValue Namespace::Entry::execute(S32 argc, ConsoleValue *argv, ExprEvalSta
|
|||
result.setInt(cb.mIntCallbackFunc(state->thisObject, argc, argv));
|
||||
break;
|
||||
case FloatCallbackType:
|
||||
result.setFloat(cb.mBoolCallbackFunc(state->thisObject, argc, argv));
|
||||
result.setFloat(cb.mFloatCallbackFunc(state->thisObject, argc, argv));
|
||||
break;
|
||||
case VoidCallbackType:
|
||||
cb.mVoidCallbackFunc(state->thisObject, argc, argv);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue