Skip to content
This repository was archived by the owner on Jul 21, 2020. It is now read-only.

Commit 363d449

Browse files
committed
win-capture: Actually always refetch capture addresses
195fe9a did not actually fix the issue; the code was misread and the wrong section of code was disabled. This actually forces a refetch.
1 parent 9a54b61 commit 363d449

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

plugins/win-capture/plugin-main.c

+6-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ extern bool load_graphics_offsets(bool is32bit);
2323
#define IS32BIT true
2424
#endif
2525

26+
#define USE_HOOK_ADDRESS_CACHE false
27+
2628
bool obs_module_load(void)
2729
{
2830
struct win_version_info ver;
@@ -50,7 +52,10 @@ bool obs_module_load(void)
5052

5153
obs_register_source(&window_capture_info);
5254

53-
if (/*cached_versions_match() &&*/ load_cached_graphics_offsets(IS32BIT)) {
55+
if (USE_HOOK_ADDRESS_CACHE &&
56+
cached_versions_match() &&
57+
load_cached_graphics_offsets(IS32BIT)) {
58+
5459
load_cached_graphics_offsets(!IS32BIT);
5560
obs_register_source(&game_capture_info);
5661

0 commit comments

Comments
 (0)