public void Init() { processId = GetProcessId(); gameMemoryScanner = new GameMemoryRE7Scanner(processId, logger); stopwatch = new Stopwatch(); stopwatch.Start(); }
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); }
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); }