File tree Expand file tree Collapse file tree 1 file changed +21
-7
lines changed
Expand file tree Collapse file tree 1 file changed +21
-7
lines changed Original file line number Diff line number Diff line change @@ -2524,14 +2524,28 @@ impl GameManagerFinder {
25242524
25252525 pub async fn wait_attach ( process : & Process ) -> GameManagerFinder {
25262526 #[ cfg( not( target_os = "unknown" ) ) ]
2527- let pointer_size = process_pointer_size ( process) . unwrap_or ( PointerSize :: Bit64 ) ;
2528- #[ cfg( not( target_os = "unknown" ) ) ]
2529- asr:: print_message ( & format ! (
2530- "GameManagerFinder wait_attach: pointer_size = {:?}" ,
2531- pointer_size
2532- ) ) ;
2527+ let pointer_size = match process_pointer_size ( process) {
2528+ Some ( s) => {
2529+ asr:: print_message ( & format ! (
2530+ "GameManagerFinder wait_attach: pointer_size = {:?}" ,
2531+ s
2532+ ) ) ;
2533+ s
2534+ }
2535+ None => {
2536+ asr:: print_message ( & format ! (
2537+ "GameManagerFinder wait_attach: pointer_size not found, guessing Bit64"
2538+ ) ) ;
2539+ PointerSize :: Bit64
2540+ }
2541+ } ;
25332542 #[ cfg( target_os = "unknown" ) ]
2534- let pointer_size = PointerSize :: Bit64 ;
2543+ let pointer_size = {
2544+ asr:: print_message ( & format ! (
2545+ "GameManagerFinder wait_attach: unknown, guessing Bit64"
2546+ ) ) ;
2547+ PointerSize :: Bit64
2548+ } ;
25352549 asr:: print_message ( "GameManagerFinder wait_attach: Module wait_attach_auto_detect..." ) ;
25362550 next_tick ( ) . await ;
25372551 let mut found_module = false ;
You can’t perform that action at this time.
0 commit comments