[c-host] fix NvFBC build after moving headers

This commit is contained in:
Geoffrey McRae 2019-04-11 17:15:17 +10:00
parent 32bd6d96e3
commit 8cedad8241
7 changed files with 21 additions and 5 deletions

View file

@ -20,7 +20,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA
#include "interface/capture.h"
#include "interface/platform.h"
#include "windows/platform.h"
#include "windows/windebug.h"
#include "windows/debug.h"
#include "windows/mousehook.h"
#include <assert.h>
#include <stdlib.h>

View file

@ -18,8 +18,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "wrapper.h"
#include "debug.h"
#include "windows/windebug.h"
#include "windows/debug.h"
#include <windows.h>
#include <NvFBC/nvFBCToSys.h>

View file

@ -28,6 +28,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA
#include "windows/debug.h"
#include "ivshmem/Public.h"
static char executable[MAX_PATH + 1];
static HANDLE shmemHandle = INVALID_HANDLE_VALUE;
static bool shmemOwned = false;
static IVSHMEM_MMAP shmemMap = {0};
@ -99,6 +100,8 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
PSP_DEVICE_INTERFACE_DETAIL_DATA infData = NULL;
SP_DEVICE_INTERFACE_DATA deviceInterfaceData;
GetModuleFileName(NULL, executable, sizeof(executable));
// redirect stderr to a file
{
char tempPath[MAX_PATH+1];
@ -224,6 +227,11 @@ finish:
return result;
}
const char * os_getExecutable()
{
return executable;
}
unsigned int os_shmemSize()
{
IVSHMEM_SIZE size;