Hey guys this is my first time posting here. I'm writing a toolkit for a game i'm writing and I need to be able to launch the game itself from within the toolkit. I can launch any other program except the game. This is the code i'm using:
QProcess *engine = new QProcess(this);
QString program = """ + path + "\engine_win.exe"";
if(engine->waitForStarted(2000) == true)
qDebug() << "running";
The error checking section actually prints running, although i cannot see the process in the task manager and nothing appears on the screen. The engine is written with SDL and OpenGL. I can launch it from the command line with no issues and I can launch any other program using QProcess so I can't see any reason this wouldn't work. If anyone could shed some light on the issue that would be great.
Edit: Also when i launch the .exe normally (by double clicking) it produces a command prompt which then opens the game window, I don't know if this is relevant but I thought the first window may be timing out before the second is launched.