Beispiel #1
0
 public GameFunctionHookServiceFactory
 (
     IDllInjector dllInjector,
     IProcessFunctionsService processFunctionsService,
     IDllFunctionFinder dllFunctionFinder,
     IAddressFinderFactory addressFinderFactory,
     string hookDllPath
 )
 {
     _dllInjector             = dllInjector;
     _processFunctionsService = processFunctionsService;
     _dllFunctionFinder       = dllFunctionFinder;
     _addressFinderFactory    = addressFinderFactory;
     _hookDllPath             = hookDllPath;
 }
 public GameFunctionHookService
 (
     IDllInjector dllInjector,
     IProcessFunctionsService processFunctionsService,
     IDllFunctionFinder dllFunctionFinder,
     IAddressFinder addressFinder,
     string hookDllPath,
     Process gameProcess
 )
 {
     _dllInjector             = dllInjector;
     _processFunctionsService = processFunctionsService;
     _dllFunctionFinder       = dllFunctionFinder;
     _addressFinder           = addressFinder;
     _hookDllPath             = hookDllPath;
     _gameProcess             = gameProcess;
     InjectDll(hookDllPath, gameProcess);
 }