mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2024-11-20 00:46:34 +00:00
Remove unneeded FindSymbol
This commit is contained in:
parent
db93ba9841
commit
d37d380677
1 changed files with 1 additions and 6 deletions
|
@ -2,14 +2,9 @@
|
|||
#include "saltysd_core.h"
|
||||
#include "saltysd_ipc.h"
|
||||
#include "saltysd_dynamic.h"
|
||||
#include "acmd_imports.h"
|
||||
|
||||
__int64_t (*lib_L2CAgent_pop_lua_stack)(__int64_t, int) = NULL;
|
||||
#include "l2c_imports.h"
|
||||
|
||||
void get_lua_stack(__int64_t* l2c_agent, int index, __int64_t* l2c_val) {
|
||||
if (lib_L2CAgent_pop_lua_stack == NULL)
|
||||
lib_L2CAgent_pop_lua_stack = (__int64_t (*)(__int64_t, int))(SaltySDCore_FindSymbol("_ZN3lib8L2CAgent13pop_lua_stackEi"));
|
||||
|
||||
asm("mov x8, %x0" : : "r"(l2c_val) : "x8" );
|
||||
lib_L2CAgent_pop_lua_stack(l2c_agent, index);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue