MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / ChangeTarget

Method ChangeTarget

IntelPresentMon/Core/source/kernel/InjectorComplex.cpp:44–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 }
43 }
44 void InjectorComplex::ChangeTarget(std::optional<std::string> targetModuleName)
45 {
46 std::lock_guard lk{ mtx_ };
47 if (IsActive(false) && targetModuleName_ != targetModuleName) {
48 pmlog_dbg("Writing new target name to injectors").pmwatch(targetModuleName.value_or(""s));
49 targetModuleName_ = targetModuleName;
50 pInjector32_->ChangeTarget(targetModuleName);
51 pInjector64_->ChangeTarget(targetModuleName);
52 }
53 }
54 InjectorComplex::InjectorModule_::InjectorModule_(bool is32Bit)
55 :
56 pipeOut_{ ioctx_ },

Callers 1

UpdateInjectionMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected