Ver código fonte

win-capture: Always refetch game capture addresses

This is a fast/immediate solution to a possible bug with caching the DLL
versions for game capture hook addresses - may as well just reload game
capture hook addresses each time the program is run for the time being
just to be safe.  Load time will increase a little for the time being
but it's worth it to prevent any issues with game capture.
jp9000 9 anos atrás
pai
commit
195fe9a560
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      plugins/win-capture/plugin-main.c

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

@@ -50,7 +50,7 @@ bool obs_module_load(void)
 
 	obs_register_source(&window_capture_info);
 
-	if (cached_versions_match() && load_cached_graphics_offsets(IS32BIT)) {
+	if (/*cached_versions_match() &&*/ load_cached_graphics_offsets(IS32BIT)) {
 		load_cached_graphics_offsets(!IS32BIT);
 		obs_register_source(&game_capture_info);