pub struct Module { /* private fields */ }
unity
only.Expand description
Represents access to a Unity game that is using the IL2CPP backend.
Implementations§
Source§impl Module
impl Module
Sourcepub fn attach_auto_detect(process: &Process) -> Option<Self>
pub fn attach_auto_detect(process: &Process) -> Option<Self>
Tries attaching to a Unity game that is using the IL2CPP backend. This
function automatically detects the IL2CPP version. If you
know the version in advance or it fails detecting it, use
attach
instead.
Sourcepub fn attach(process: &Process, version: Version) -> Option<Self>
pub fn attach(process: &Process, version: Version) -> Option<Self>
Tries attaching to a Unity game that is using the IL2CPP backend with
the IL2CPP version provided. The version needs to be
correct for this function to work. If you don’t know the version in
advance, use attach_auto_detect
instead.
Sourcepub fn get_image(&self, process: &Process, assembly_name: &str) -> Option<Image>
pub fn get_image(&self, process: &Process, assembly_name: &str) -> Option<Image>
Looks for the specified binary image inside the target process.
An image is a .NET DLL that is loaded
by the game. The Assembly-CSharp
image is the main game
assembly, and contains all the game logic. The
get_default_image
function is a shorthand
for this function that accesses the Assembly-CSharp
image.
Sourcepub fn get_default_image(&self, process: &Process) -> Option<Image>
pub fn get_default_image(&self, process: &Process) -> Option<Image>
Sourcepub async fn wait_attach_auto_detect(process: &Process) -> Module
pub async fn wait_attach_auto_detect(process: &Process) -> Module
Attaches to a Unity game that is using the IL2CPP backend. This function
automatically detects the IL2CPP version. If you know the
version in advance or it fails detecting it, use
wait_attach
instead.
This is the await
able version of the
attach_auto_detect
function, yielding back
to the runtime between each try.
Sourcepub async fn wait_attach(process: &Process, version: Version) -> Module
pub async fn wait_attach(process: &Process, version: Version) -> Module
Attaches to a Unity game that is using the IL2CPP backend with the
IL2CPP version provided. The version needs to be correct
for this function to work. If you don’t know the version in advance, use
wait_attach_auto_detect
instead.
This is the await
able version of the attach
function, yielding back to the runtime between each try.
Sourcepub async fn wait_get_image(
&self,
process: &Process,
assembly_name: &str,
) -> Image
pub async fn wait_get_image( &self, process: &Process, assembly_name: &str, ) -> Image
Looks for the specified binary image inside the target process.
An image is a .NET DLL that is loaded
by the game. The Assembly-CSharp
image is the main game
assembly, and contains all the game logic. The
wait_get_default_image
function is a
shorthand for this function that accesses the Assembly-CSharp
image.
This is the await
able version of the get_image
function, yielding back to the runtime between each try.
Sourcepub async fn wait_get_default_image(&self, process: &Process) -> Image
pub async fn wait_get_default_image(&self, process: &Process) -> Image
Looks for the Assembly-CSharp
binary image inside the target
process. An image is a .NET DLL that
is loaded by the game. The Assembly-CSharp
image is the main
game assembly, and contains all the game logic. This function is a
shorthand for wait_get_image
that accesses the
Assembly-CSharp
image.
This is the await
able version of the
get_default_image
function, yielding back
to the runtime between each try.