mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Rename to more appropriate name
This commit is contained in:
parent
ad90ef6813
commit
1fb89c35c8
@ -10,7 +10,7 @@
|
||||
#include "squirrel/sqstdaux.h"
|
||||
|
||||
bool g_bSQAuxError = false;
|
||||
bool g_bSQAuxBadIndex = false;
|
||||
bool g_bSQAuxBadLogic = false;
|
||||
SQInteger sqstd_aux_printerror(HSQUIRRELVM v)
|
||||
{
|
||||
g_bSQAuxError = true;
|
||||
@ -21,7 +21,7 @@ SQInteger sqstd_aux_printerror(HSQUIRRELVM v)
|
||||
|
||||
SQInteger sqstd_aux_badlogic(HSQUIRRELVM v, __m128i* a2, __m128i* a3)
|
||||
{
|
||||
g_bSQAuxBadIndex = true;
|
||||
g_bSQAuxBadLogic = true;
|
||||
SQInteger results = v_sqstd_aux_badlogic(v, a2, a3);
|
||||
return results;
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
extern bool g_bSQAuxError;
|
||||
extern bool g_bSQAuxBadIndex;
|
||||
extern bool g_bSQAuxBadLogic;
|
||||
|
||||
inline CMemory p_sqstd_aux_printerror;
|
||||
inline auto v_sqstd_aux_printerror = p_sqstd_aux_printerror.RCast<SQInteger(*)(HSQUIRRELVM v)>();
|
||||
|
@ -104,12 +104,12 @@ SQRESULT SQVM_PrintFunc(HSQUIRRELVM v, SQChar* fmt, ...)
|
||||
vmStrAnsi = SQVM_WARNING_ANSI_LOG_T[static_cast<SQInteger>(context)].c_str();
|
||||
}
|
||||
}
|
||||
else if (g_bSQAuxBadIndex)
|
||||
else if (g_bSQAuxBadLogic)
|
||||
{
|
||||
if (strstr(buf, "There was a problem processing game logic."))
|
||||
{
|
||||
bError = true;
|
||||
g_bSQAuxBadIndex = false;
|
||||
g_bSQAuxBadLogic = false;
|
||||
vmStrAnsi = SQVM_ERROR_ANSI_LOG_T[static_cast<SQInteger>(context)].c_str();
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user