forked from yifanlu/taiHEN
-
Notifications
You must be signed in to change notification settings - Fork 5
/
plugin.h
33 lines (26 loc) · 851 Bytes
/
plugin.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/**
* @brief Config and plugin loading
*/
#ifndef TAI_PLUGIN_HEADER
#define TAI_PLUGIN_HEADER
/**
* @defgroup plugin Plugin Loading
* @brief Loads config.txt and handles plugins
*
* @details Plugins are loaded from the default location and then the
* fallback. Locks are used to ensure config does not change during
* parsing.
*/
/** @{ */
/** Path to the taiHEN configuration file */
#define TAIHEN_CONFIG_FILE "ux0:tai/config.txt"
/** Fallback if the configuration file is not found. */
#define TAIHEN_RECOVERY_CONFIG_FILE "ur0:tai/config.txt"
int plugin_init(void);
void plugin_deinit(void);
int plugin_load_config(void);
int plugin_free_config(void);
int plugin_load_all(SceUID pid, const char *titleid);
int plugin_delayed_load_config(int load_kernel);
/** @} */
#endif // TAI_PLUGIN_HEADER