Beispiel #1
0
 public void Init()
 {
     processId         = GetProcessId();
     gameMemoryScanner = new GameMemoryRE7Scanner(processId, logger);
     stopwatch         = new Stopwatch();
     stopwatch.Start();
 }
Beispiel #2
0
 public void Dispose()
 {
     stopwatch?.Stop();
     stopwatch = null;
     gameMemoryScanner?.Dispose();
     gameMemoryScanner = null;
 }
 public int Shutdown()
 {
     gameMemoryScanner?.Dispose();
     gameMemoryScanner = null;
     stopwatch?.Stop();
     stopwatch = null;
     return(0);
 }
 public int Startup(IPluginHostDelegates hostDelegates)
 {
     this.hostDelegates = hostDelegates;
     processId          = GetProcessId();
     gameMemoryScanner  = new GameMemoryRE7Scanner(processId);
     stopwatch          = new Stopwatch();
     stopwatch.Start();
     return(0);
 }
Beispiel #5
0
 public int Startup(IPluginHostDelegates hostDelegates)
 {
     this.hostDelegates = hostDelegates;
     processId          = Process.GetProcessesByName("re7")?.FirstOrDefault()?.Id;
     gameMemoryScanner  = new GameMemoryRE7Scanner(processId);
     stopwatch          = new Stopwatch();
     stopwatch.Start();
     return(0);
 }