Change how replay programs are identified, from filename to sym export

* Instead of checking on the filename, we look for a specially named
  exported symbol somewhere in a module that's already loaded.
* This allows us to mark the python module as a replay program, so if
  it's loaded into the python interpreter it will be able to use the
  replay API.
This commit is contained in:
baldurk
2017-08-31 18:33:23 +01:00
parent fbd1c40654
commit 82a0e055ba
14 changed files with 84 additions and 25 deletions
+8
View File
@@ -34,6 +34,14 @@
#include "Code/pyrenderdoc/PythonContext.h"
#include "Windows/MainWindow.h"
#if defined(Q_OS_WIN32)
extern "C" {
_declspec(dllexport) unsigned long NvOptimusEnablement = 0x00000001;
}
#endif
REPLAY_PROGRAM_MARKER()
void sharedLogOutput(QtMsgType type, const QMessageLogContext &context, const QString &msg)
{
LogType logtype = LogType::Comment;