File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -55,8 +55,8 @@ struct Memory {
5555}
5656
5757impl Memory {
58- async fn init ( process : & Process , moduleName : & str ) -> Self {
59- let baseModule = retry ( || process. get_module_address ( moduleName ) ) . await ;
58+ async fn init ( process : & Process ) -> Self {
59+ let baseModule = retry ( || process. get_module_address ( "SniperElite.exe" ) ) . await ;
6060 let baseModuleSize = retry ( || pe:: read_size_of_image ( process, baseModule) ) . await ;
6161 //asr::print_message(&format!("{}", baseModuleSize));
6262
@@ -159,7 +159,7 @@ async fn main() {
159159
160160 process. until_closes ( async {
161161 let mut watchers = Watchers :: default ( ) ;
162- let memory = Memory :: init ( & process, "SniperElite.exe" ) . await ;
162+ let memory = Memory :: init ( & process) . await ;
163163
164164 loop {
165165 settings. update ( ) ;
You can’t perform that action at this time.
0 commit comments