(API Change) libobs: Add global module config path

API Changed:
---------------------------
From:
- bool obs_startup(const char *locale, profiler_name_store_t *store);

To:
- bool obs_startup(const char *locale, const char *module_config_path,
		profiler_name_store_t *store);

Summary:
---------------------------
This allows plugin modules to store plugin-specific configuration data
(rather than only allowing objects to store configuration data).  This
will be useful for things like caching data, for example looking up and
storing ingests from remote (rather than storing locally), or caching
font data (so it doesn't have to build a font cache each time), among
other things.

Also adds a module-specific directory for the UI
This commit is contained in:
jp9000
2015-08-09 05:09:07 -07:00
parent 0ce756acba
commit 2bd8ab7c09
6 changed files with 35 additions and 9 deletions

View File

@@ -82,7 +82,7 @@ static void CreateOBS(HWND hwnd)
RECT rc;
GetClientRect(hwnd, &rc);
if (!obs_startup("en-US", nullptr))
if (!obs_startup("en-US", nullptr, nullptr))
throw "Couldn't create OBS";
struct obs_video_info ovi;