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
@@ -24,6 +24,8 @@
#include <Python.h>
#include "renderdoc_replay.h"
extern "C" PyThreadState *GetExecutingThreadState(PyObject *global_handle)
{
return NULL;
@@ -41,3 +43,5 @@ extern "C" bool IsThreadBlocking(PyObject *global_handle)
extern "C" void SetThreadBlocking(PyObject *global_handle, bool block)
{
}
REPLAY_PROGRAM_MARKER()