0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00

win-capture: Disable cached offsets writing

We don't read cached offsets any more, so it makes little sense to write
them on every startup.
This commit is contained in:
Richard Stanway 2018-12-07 23:01:23 +01:00
parent f48b210d61
commit 7a32f12d9c
2 changed files with 5 additions and 0 deletions

View File

@ -194,12 +194,15 @@ bool load_graphics_offsets(bool is32bit, const char *config_path)
goto error;
}
// uncomment this if you enable USE_HOOK_ADDRESS_CACHE
/*
dstr_copy(&config_ini, config_path);
dstr_cat(&config_ini, is32bit ? "32.ini" : "64.ini");
os_quick_write_utf8_file_safe(config_ini.array, str.array, str.len, false,
"tmp", NULL);
dstr_free(&config_ini);
*/
success = load_offsets_from_string(is32bit ? &offsets32 : &offsets64,
str.array);

View File

@ -29,6 +29,8 @@ extern bool load_graphics_offsets(bool is32bit, const char *config_path);
#define IS32BIT true
#endif
/* note, need to enable cache writing in load-graphics-offsets.c if you turn
* this back on*/
#define USE_HOOK_ADDRESS_CACHE false
static DWORD WINAPI init_hooks(LPVOID param)