mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
Set a more proper type
This commit is contained in:
parent
067d02c0ad
commit
e4acb7b6af
2 changed files with 5 additions and 2 deletions
|
@ -9,7 +9,7 @@ use std::{
|
|||
use iced_x86::Mnemonic;
|
||||
use lua_bindings::{lua_State, Lua51, LUA_GLOBALSINDEX};
|
||||
use noita::{
|
||||
ntypes::{Entity, EntityManager},
|
||||
ntypes::{Entity, EntityManager, ThiscallFn},
|
||||
NoitaPixelRun, ParticleWorldState,
|
||||
};
|
||||
|
||||
|
@ -44,7 +44,7 @@ struct GrabbedGlobals {
|
|||
}
|
||||
|
||||
struct GrabbedFns {
|
||||
get_entity: unsafe extern "C" fn(*const EntityManager, u32) -> *mut Entity,
|
||||
get_entity: *const ThiscallFn, //unsafe extern "C" fn(*const EntityManager, u32) -> *mut Entity,
|
||||
}
|
||||
|
||||
#[derive(Default)]
|
||||
|
|
|
@ -78,3 +78,6 @@ pub(crate) struct EntityManager {
|
|||
_fld: c_void,
|
||||
// Unknown
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
pub(crate) struct ThiscallFn(c_void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue