(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:
@@ -241,10 +241,13 @@ struct obs_source_frame {
|
||||
/**
|
||||
* Initializes OBS
|
||||
*
|
||||
* @param locale The locale to use for modules
|
||||
* @param store The profiler name store for OBS to use or NULL
|
||||
* @param locale The locale to use for modules
|
||||
* @param module_config_path Path to module config storage directory
|
||||
* (or NULL if none)
|
||||
* @param store The profiler name store for OBS to use or NULL
|
||||
*/
|
||||
EXPORT bool obs_startup(const char *locale, profiler_name_store_t *store);
|
||||
EXPORT bool obs_startup(const char *locale, const char *module_config_path,
|
||||
profiler_name_store_t *store);
|
||||
|
||||
/** Releases all data associated with OBS and terminates the OBS context */
|
||||
EXPORT void obs_shutdown(void);
|
||||
|
Reference in New Issue
Block a user