mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-07-31 19:43:38 +00:00
[c-host] fix NvFBC build after moving headers
This commit is contained in:
parent
32bd6d96e3
commit
8cedad8241
7 changed files with 21 additions and 5 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue