mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 21:30:53 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user