Bläddra i källkod

win-capture: Actually always refetch capture addresses

195fe9a560be did not actually fix the issue; the code was misread and
the wrong section of code was disabled.  This actually forces a refetch.
jp9000 9 år sedan
förälder
incheckning
363d449789
1 ändrade filer med 6 tillägg och 1 borttagningar
  1. 6 1
      plugins/win-capture/plugin-main.c

+ 6 - 1
plugins/win-capture/plugin-main.c

@@ -23,6 +23,8 @@ extern bool load_graphics_offsets(bool is32bit);
 #define IS32BIT true
 #endif
 
+#define USE_HOOK_ADDRESS_CACHE false
+
 bool obs_module_load(void)
 {
 	struct win_version_info ver;
@@ -50,7 +52,10 @@ bool obs_module_load(void)
 
 	obs_register_source(&window_capture_info);
 
-	if (/*cached_versions_match() &&*/ load_cached_graphics_offsets(IS32BIT)) {
+	if (USE_HOOK_ADDRESS_CACHE &&
+	    cached_versions_match() &&
+	    load_cached_graphics_offsets(IS32BIT)) {
+
 		load_cached_graphics_offsets(!IS32BIT);
 		obs_register_source(&game_capture_info);