Fix some missing export functions that are needed for capturing

* These were removed from the public API but are still needed directly
  for the capturing process.
This commit is contained in:
baldurk
2015-08-24 20:05:41 +02:00
parent abdec82be1
commit 28c7772e69
+19 -6
View File
@@ -36,6 +36,25 @@
#include <string>
using std::string;
// helpers for various shims and dlls etc, not part of the public API
extern "C" __declspec(dllexport)
void __cdecl RENDERDOC_GetRemoteAccessIdent(uint32_t *ident)
{
if(ident) *ident = RenderDoc::Inst().GetRemoteAccessIdent();
}
extern "C" __declspec(dllexport)
void __cdecl RENDERDOC_SetCaptureOptions(CaptureOptions *opts)
{
if(opts) RenderDoc::Inst().SetCaptureOptions(*opts);
}
extern "C" __declspec(dllexport)
void __cdecl RENDERDOC_SetLogFile(const char *log)
{
if(log) RenderDoc::Inst().SetLogFile(log);
}
void InjectDLL(HANDLE hProcess, wstring libName)
{
wchar_t dllPath[MAX_PATH + 1] = {0};
@@ -249,12 +268,6 @@ static PROCESS_INFORMATION RunProcess(const char *app, const char *workingDir, c
return pi;
}
extern "C" __declspec(dllexport)
void __cdecl RENDERDOC_GetRemoteAccessIdent(uint32_t *ident)
{
if(ident) *ident = RenderDoc::Inst().GetRemoteAccessIdent();
}
uint32_t Process::InjectIntoProcess(uint32_t pid, const char *logfile, const CaptureOptions *opts, bool waitForExit)
{
CaptureOptions options;