mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
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:
@@ -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()
|
||||
Reference in New Issue
Block a user