WUPS 0.6.1

This commit is contained in:
Maschell 2021-10-01 17:24:45 +02:00
parent 6510dd5c21
commit 2721e7920b
4 changed files with 6 additions and 7 deletions

View File

@ -3,7 +3,7 @@ include $(TOPDIR)/share/wups_rules
export WUT_MAJOR := 0 export WUT_MAJOR := 0
export WUT_MINOR := 6 export WUT_MINOR := 6
export WUT_PATCH := 0 export WUT_PATCH := 1
VERSION := $(WUT_MAJOR).$(WUT_MINOR).$(WUT_PATCH) VERSION := $(WUT_MAJOR).$(WUT_MINOR).$(WUT_PATCH)

View File

@ -112,7 +112,8 @@ typedef struct wups_loader_hook_t {
WUPS_HOOK_EX(WUPS_LOADER_HOOK_CONFIG_CLOSED,on_wups_config_closed); \ WUPS_HOOK_EX(WUPS_LOADER_HOOK_CONFIG_CLOSED,on_wups_config_closed); \
void on_wups_config_closed(void) void on_wups_config_closed(void)
#define WUPS_USE_STORAGE() \ #define WUPS_USE_STORAGE(x) \
WUPS_META(storage_id, x); \
void init_storage(wups_loader_init_storage_args_t);\ void init_storage(wups_loader_init_storage_args_t);\
WUPS_HOOK_EX(WUPS_LOADER_HOOK_INIT_STORAGE,init_storage); \ WUPS_HOOK_EX(WUPS_LOADER_HOOK_INIT_STORAGE,init_storage); \
void init_storage(wups_loader_init_storage_args_t args){ \ void init_storage(wups_loader_init_storage_args_t args){ \

View File

@ -33,7 +33,7 @@ extern "C" {
#endif #endif
#define WUPS_PLUGIN_NAME(x) WUPS_META(name, x); \ #define WUPS_PLUGIN_NAME(x) WUPS_META(name, x); \
WUPS_META(wups, "0.6"); \ WUPS_META(wups, "0.6.1"); \
WUPS_USE_WUT_MALLOC(); \ WUPS_USE_WUT_MALLOC(); \
WUPS_USE_WUT_SOCKETS(); \ WUPS_USE_WUT_SOCKETS(); \
WUPS_USE_WUT_NEWLIB(); \ WUPS_USE_WUT_NEWLIB(); \
@ -44,7 +44,6 @@ extern "C" {
#define WUPS_PLUGIN_VERSION(x) WUPS_META(version, x) #define WUPS_PLUGIN_VERSION(x) WUPS_META(version, x)
#define WUPS_PLUGIN_LICENSE(x) WUPS_META(license, x) #define WUPS_PLUGIN_LICENSE(x) WUPS_META(license, x)
#define WUPS_PLUGIN_DESCRIPTION(x) WUPS_META(description, x) #define WUPS_PLUGIN_DESCRIPTION(x) WUPS_META(description, x)
#define WUPS_PLUGIN_ID(x) WUPS_META(id, x)
#define WUPS_PLUGIN_CONFIG_REVISION(x) WUPS_META(config_revision, #x) #define WUPS_PLUGIN_CONFIG_REVISION(x) WUPS_META(config_revision, #x)
#ifdef __cplusplus #ifdef __cplusplus

View File

@ -13,7 +13,6 @@
Mandatory plugin information. Mandatory plugin information.
If not set correctly, the loader will refuse to use the plugin. If not set correctly, the loader will refuse to use the plugin.
**/ **/
WUPS_PLUGIN_ID("example_plugin");
WUPS_PLUGIN_NAME("Example plugin"); WUPS_PLUGIN_NAME("Example plugin");
WUPS_PLUGIN_DESCRIPTION("This is just an example plugin and will log the FSOpenFile function."); WUPS_PLUGIN_DESCRIPTION("This is just an example plugin and will log the FSOpenFile function.");
WUPS_PLUGIN_VERSION("v1.0"); WUPS_PLUGIN_VERSION("v1.0");
@ -27,7 +26,7 @@ WUPS_PLUGIN_LICENSE("BSD");
**/ **/
WUPS_USE_WUT_DEVOPTAB(); // Use the wut devoptabs WUPS_USE_WUT_DEVOPTAB(); // Use the wut devoptabs
WUPS_USE_STORAGE(); // Use the storage API WUPS_USE_STORAGE("example_plugin"); // Use the storage API
bool logFSOpen = true; bool logFSOpen = true;