public int Shutdown() { try { _memoryScanner?.Dispose(); _memoryScanner = null; _stopwatch[0]?.Stop(); _stopwatch[0] = null; _stopwatch[1]?.Stop(); _stopwatch[1] = null; _stopwatch = null; return(0); } catch (Exception ex) { _hostDelegates.ExceptionMessage(ex); return(1); } }
public int Startup(IPluginHostDelegates hostDelegates) { try { _hostDelegates = hostDelegates; _memoryScanner = new GameMemoryRECVXScanner(GetEmulator()); _stopwatch = new Stopwatch[2]; _stopwatch[0] = new Stopwatch(); _stopwatch[0].Start(); _stopwatch[1] = new Stopwatch(); _stopwatch[1].Start(); return(0); } catch (Exception ex) { _hostDelegates.ExceptionMessage(ex); return(1); } }