MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / Attach

Method Attach

emmy_tool/src/windows/emmy_tool.windows.cpp:253–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251}
252
253int EmmyTool::Attach() {
254 const int pid = _cmd.Get<int>("p");
255 std::string dir = _cmd.Get<std::string>("dir");
256 std::string dll = _cmd.Get<std::string>("dll");
257 auto capture = _cmd.Get<bool>("capture-log");
258 if (!InjectDll(pid, dir.c_str(), dll.c_str(), capture)) {
259 return -1;
260 }
261
262 return 0;
263}
264
265int EmmyTool::ListProcesses() {
266 std::vector<Process> list;

Callers 1

mainFunction · 0.45

Calls 1

InjectDllFunction · 0.85

Tested by

no test coverage detected