Set a more proper type

This commit is contained in:
IQuant 2024-11-13 19:47:48 +03:00
parent 067d02c0ad
commit e4acb7b6af
2 changed files with 5 additions and 2 deletions

View file

@ -9,7 +9,7 @@ use std::{
use iced_x86::Mnemonic; use iced_x86::Mnemonic;
use lua_bindings::{lua_State, Lua51, LUA_GLOBALSINDEX}; use lua_bindings::{lua_State, Lua51, LUA_GLOBALSINDEX};
use noita::{ use noita::{
ntypes::{Entity, EntityManager}, ntypes::{Entity, EntityManager, ThiscallFn},
NoitaPixelRun, ParticleWorldState, NoitaPixelRun, ParticleWorldState,
}; };
@ -44,7 +44,7 @@ struct GrabbedGlobals {
} }
struct GrabbedFns { 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)] #[derive(Default)]

View file

@ -78,3 +78,6 @@ pub(crate) struct EntityManager {
_fld: c_void, _fld: c_void,
// Unknown // Unknown
} }
#[repr(C)]
pub(crate) struct ThiscallFn(c_void);