add temp. example func. to start a process without Steam hooking it.

v2
Peter Repukat 7 years ago
parent 0de8863ec4
commit 5f0c1478cf

@ -24,6 +24,7 @@ limitations under the License.
#include "OverlayHookFunction.h"
#include "Injector.h"
#include <tlhelp32.h>
#include <QProcess>
SteamTarget::SteamTarget(int& argc, char** argv) : QApplication(argc, argv)
{
@ -41,6 +42,9 @@ void SteamTarget::init()
controller_thread_.run();
if (hook_steam_ && !use_desktop_conf_)
Injector::hookSteam();
launchDebug();
}
BOOL SteamTarget::ConsoleCtrlCallback(DWORD dwCtrlType)
@ -150,5 +154,15 @@ void SteamTarget::initOverlayEvents()
}
}
void SteamTarget::launchDebug() const
{
QProcess proc;
proc.startDetached("explorer.exe", QStringList() << "C:\\Windows\\system32\\cmd.exe");
}

@ -45,6 +45,8 @@ private:
void read_ini();
void initOverlayEvents();
void launchDebug() const;
TargetOverlay target_overlay_;
VirtualControllerThread controller_thread_;

Loading…
Cancel
Save