Add wrapper around tracking a python context and executing scripts

This commit is contained in:
baldurk
2017-03-17 18:07:33 +00:00
parent 12472d93bc
commit cb510298d8
6 changed files with 634 additions and 0 deletions
+5
View File
@@ -31,6 +31,7 @@
#include "Code/CaptureContext.h"
#include "Code/QRDUtils.h"
#include "Code/Resources.h"
#include "Code/pyrenderdoc/PythonContext.h"
#include "Windows/MainWindow.h"
void sharedLogOutput(QtMsgType type, const QMessageLogContext &context, const QString &msg)
@@ -160,12 +161,16 @@ int main(int argc, char *argv[])
CaptureContext ctx(filename, remoteHost, remoteIdent, temp, config);
PythonContext::GlobalInit();
while(ctx.isRunning())
{
application.processEvents(QEventLoop::WaitForMoreEvents);
QCoreApplication::sendPostedEvents();
}
PythonContext::GlobalShutdown();
config.Save();
}