mirror of
https://github.com/LibreVR/Revive.git
synced 2026-08-04 00:54:37 -04:00
20 lines
483 B
C
20 lines
483 B
C
/*
|
|
Note: The files should be arranged as follows:
|
|
ReviveInjector_x64.exe
|
|
ReviveInjector_x86.exe
|
|
x86\openvr_api.dll
|
|
x86\LibRevive32_1.dll
|
|
x64\openvr_api.dll
|
|
x64\LibRevive64_1.dll
|
|
*/
|
|
#pragma once
|
|
|
|
#include <stdio.h>
|
|
|
|
extern FILE* g_LogFile;
|
|
#define LOG(x, ...) if (g_LogFile) fprintf(g_LogFile, x, __VA_ARGS__); \
|
|
printf(x, __VA_ARGS__); \
|
|
fflush(g_LogFile);
|
|
|
|
int CreateProcessAndInject(wchar_t *programPath);
|
|
int OpenProcessAndInject(wchar_t *processId);
|