MCPcopy Create free account
hub / github.com/Phobos-developers/Phobos / ExeRun

Method ExeRun

src/Phobos.cpp:106–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106void Phobos::ExeRun()
107{
108 Patch::ApplyStatic();
109
110#ifdef DEBUG
111
112 if (Phobos::DetachFromDebugger())
113 {
114 MessageBoxW(NULL,
115 L"You can now attach a debugger.\n\n"
116
117 L"Press OK to continue YR execution.",
118 L"Debugger Notice", MB_OK);
119 }
120 else
121 {
122 MessageBoxW(NULL,
123 L"You can now attach a debugger.\n\n"
124
125 L"To attach a debugger find the YR process in Process Hacker "
126 L"/ Visual Studio processes window and detach debuggers from it, "
127 L"then you can attach your own debugger. After this you should "
128 L"terminate Syringe.exe because it won't automatically exit when YR is closed.\n\n"
129
130 L"Press OK to continue YR execution.",
131 L"Debugger Notice", MB_OK);
132 }
133
134 if (!Console::Create())
135 {
136 MessageBoxW(NULL,
137 L"Failed to allocate the debug console!",
138 L"Debug Console Notice", MB_OK);
139 }
140
141#endif
142}
143
144void Phobos::ExeTerminate()
145{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected