File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff 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 ) ,
You can’t perform that action at this time.
0 commit comments