Skip to content

Commit e992f29

Browse files
committed
Mac std attach Module V1
1 parent c05991f commit e992f29

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/game_engine/unity/mono.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ impl Module {
5454
("mono.dll", BinaryFormat::PE),
5555
("mono-2.0-bdwgc.dll", BinaryFormat::PE),
5656
#[cfg(feature = "std")]
57+
("libmono.0.dylib", BinaryFormat::MachO),
58+
#[cfg(feature = "std")]
5759
("libmonobdwgc-2.0.dylib", BinaryFormat::MachO)
5860
].into_iter()
5961
.find_map(|(name, format)| Some((name, process.get_module_range(name).ok()?, format)))?;
@@ -933,6 +935,9 @@ fn detect_version(process: &Process) -> Option<Version> {
933935
if process.get_module_address("mono.dll").is_ok() {
934936
return Some(Version::V1);
935937
}
938+
if process.get_module_address("libmono.0.dylib").is_ok() {
939+
return Some(Version::V1);
940+
}
936941

937942
let unity_module = [
938943
("UnityPlayer.dll", BinaryFormat::PE),

0 commit comments

Comments
 (0)