Commit Graph

13 Commits

Author SHA1 Message Date
Maschell
d949dc8bd1 [Makefile] Split up the plugin makefiles, now common changes can be done in makefile.mk 2018-03-10 13:26:43 +01:00
Maschell
b9b8bceebf [Loader] Added mkdir support to the plugins 2018-03-08 16:38:26 +01:00
Maschell
2aadfcf68e Added new hook-methods, added more information to the example_plugin
- Split up the WUPS includes into multiple seperate files, renamed some structs
- Added the hooks functions. (INITIALIZE_PLUGIN, DEINITIALIZE_PLUGIN, ON_VYSNC, ON_APP_STATUS_CHANGED, ON_APPLICATION_ENDING). INITIALZE is now "ON_APPLICATION_START". See the example for more information.
- Updated all plugins to fit the new hook. Some profit of the new hooks and are simpler now. (For example SwipSwapMe doesn't need to check if it's the first boot)
- arguments of the ON_APPLICATION_START have changed. It's not a pointer anymore and now has the boolean fields sd_mounted/usb_mounted which indicate if the device was mounted and it available via sd:/ or usb:/
- Some minor cleanups and formatting.
2018-02-25 13:07:49 +01:00
Maschell
d64f221a92 [ALL] Added more fields to the metadata
- Now the plugin it holds the build timestamp and a description
- Added descriptions for all plugins
2018-02-18 18:43:51 +01:00
Maschell
41da4db58c Replaced all instances of the word "module" with "plugin" 2018-02-18 16:10:27 +01:00
Maschell
749ce215cf Updated the READMEs of the plugins 2018-02-16 22:22:41 +01:00
Maschell
797e58f576 [General] Moving the FS-wrapper into an own lib, no more macro madness
The library now needs to be build with "make" and installed with "make install".
Make sure to include the -lwups into the plugin projecs.
If you call "WUPS_InitFS(args);" in the INITIALIZE method, the plugin has full SD/USB access.
2018-02-16 21:51:35 +01:00
Maschell
46358ce67a Added SD/USB support for plugins!
Now the plugins inherit the SD/USB access from the loader.
Check
(args != NULL && (args->device_mounted & WUPS_SD_MOUNTED) > 0)
in your INITIALZE method if you have SD access, and
(args != NULL && (args->device_mounted & WUPS_USB_MOUNTED) > 0)
for usb access.
You can simply use open, read etc. then with "sd:/" and "usb:".
No (un)mounting required.
NTFS support is NOT implemented yet.

So:
HID to VPAD plugin can now read configurations
SDCafiine now has support for libfat (other games than SSBU + FAT32 USB)
2018-02-14 22:52:16 +01:00
Maschell
78a160a74c [Plugins] Added readmes to the plugins, renamed SwapDRC to SwipSwapMe 2018-02-13 08:22:05 +01:00
Maschell
d12bb68c16 [Plugins] Remove the fPIC flag, is not needed. 2018-02-11 18:16:32 +01:00
Maschell
3cc18c2557 [Plugins] Updated the Makefile
- Added some comments
- Linking without --relocatable to check if all symbols can be found
- cleanup
2018-02-11 14:45:20 +01:00
Maschell
d181e445c7 [Plugins] Updated the Makefile. C++ and stdlib should work now.
- Using a different base for the makefile, which provides some more function
- Linking with stdlib should work now
- C++ _should_ work. not really tested yet.

[Example Plugin] Updated example plugin to log all FSOpen actions.
2018-02-11 03:26:54 +01:00
Maschell
e58dc7a506 [Plugins] Added a simple padcon plugin! 2018-02-10 17:06:42 +01:00