Browse Source

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 <[email protected]>
Richard Stanway 3 years ago
parent
commit
86963f65d2
2 changed files with 4 additions and 3 deletions
  1. 1 2
      libobs/util/windows/obfuscate.h
  2. 3 1
      plugins/win-capture/CMakeLists.txt

+ 1 - 2
libobs/util/windows/obfuscate.h

@@ -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
 }

+ 3 - 1
plugins/win-capture/CMakeLists.txt

@@ -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)