diff --git a/Makefile b/Makefile index 05eeae9..55a8aa4 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ include $(TOPDIR)/share/wups_rules export WUT_MAJOR := 0 export WUT_MINOR := 6 -export WUT_PATCH := 0 +export WUT_PATCH := 1 VERSION := $(WUT_MAJOR).$(WUT_MINOR).$(WUT_PATCH) diff --git a/include/wups/hooks.h b/include/wups/hooks.h index 43476d6..255e149 100644 --- a/include/wups/hooks.h +++ b/include/wups/hooks.h @@ -112,7 +112,8 @@ typedef struct wups_loader_hook_t { WUPS_HOOK_EX(WUPS_LOADER_HOOK_CONFIG_CLOSED,on_wups_config_closed); \ 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);\ WUPS_HOOK_EX(WUPS_LOADER_HOOK_INIT_STORAGE,init_storage); \ void init_storage(wups_loader_init_storage_args_t args){ \ diff --git a/include/wups/meta.h b/include/wups/meta.h index 1c9c005..30411ca 100644 --- a/include/wups/meta.h +++ b/include/wups/meta.h @@ -33,7 +33,7 @@ extern "C" { #endif #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_SOCKETS(); \ WUPS_USE_WUT_NEWLIB(); \ @@ -44,7 +44,6 @@ extern "C" { #define WUPS_PLUGIN_VERSION(x) WUPS_META(version, x) #define WUPS_PLUGIN_LICENSE(x) WUPS_META(license, 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) #ifdef __cplusplus diff --git a/plugins/example_plugin/src/main.cpp b/plugins/example_plugin/src/main.cpp index 30a7280..6f0d6c3 100644 --- a/plugins/example_plugin/src/main.cpp +++ b/plugins/example_plugin/src/main.cpp @@ -13,7 +13,6 @@ Mandatory plugin information. If not set correctly, the loader will refuse to use the plugin. **/ -WUPS_PLUGIN_ID("example_plugin"); WUPS_PLUGIN_NAME("Example plugin"); WUPS_PLUGIN_DESCRIPTION("This is just an example plugin and will log the FSOpenFile function."); WUPS_PLUGIN_VERSION("v1.0"); @@ -26,8 +25,8 @@ WUPS_PLUGIN_LICENSE("BSD"); **/ -WUPS_USE_WUT_DEVOPTAB(); // Use the wut devoptabs -WUPS_USE_STORAGE(); // Use the storage API +WUPS_USE_WUT_DEVOPTAB(); // Use the wut devoptabs +WUPS_USE_STORAGE("example_plugin"); // Use the storage API bool logFSOpen = true;