win-capture: Actually always refetch capture addresses

195fe9a560 did not actually fix the issue; the code was misread and
the wrong section of code was disabled.  This actually forces a refetch.
master
jp9000 2016-03-21 13:54:50 -07:00
parent 9a54b61df6
commit 363d449789
1 changed files with 6 additions and 1 deletions

View File

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