mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-08 13:21:45 +00:00
Add wrapper around tracking a python context and executing scripts
This commit is contained in:
1 parent
12472d93bc
commit
cb510298d8
6 files changed
+634
No files matched your search
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user