libobs, win-capture: Don't export ms_get_obfuscated_func

Since this was included in things like the inject helper and game
capture DLLs, it added an additional export to those programs. Instead,
simply share the source files directly in the projects that need it.

Co-authored-by: jpark37 <jpark37@users.noreply.github.com>
master
Richard Stanway 2022-08-07 19:18:04 +02:00
parent 61e0d69779
commit 86963f65d2
No known key found for this signature in database
GPG Key ID: 4F96FCA24BCE7BA1
2 changed files with 4 additions and 3 deletions

View File

@ -9,8 +9,7 @@ extern "C" {
/* this is a workaround to A/Vs going crazy whenever certain functions (such as
* OpenProcess) are used */
EXPORT void *ms_get_obfuscated_func(HMODULE module, const char *str,
uint64_t val);
void *ms_get_obfuscated_func(HMODULE module, const char *str, uint64_t val);
#ifdef __cplusplus
}

View File

@ -24,7 +24,9 @@ target_sources(
monitor-capture.c
nt-stuff.c
nt-stuff.h
window-capture.c)
window-capture.c
../../../libobs/util/windows/obfuscate.c
../../../libobs/util/windows/obfuscate.h)
target_link_libraries(win-capture PRIVATE OBS::libobs OBS::ipc-util)