59 Commits

Author SHA1 Message Date
Maschell
a29cd016c2 WUPSButtonComboAPI: Add support for GetControllerTypeStr 2025-01-05 16:02:46 +01:00
Maschell
1569d27eca ButtonComboAPI: Add missing wiimote buttons 2025-01-04 12:43:21 +01:00
Maschell
7b31373dbe ButtonComboAPI: Move button combo API into it's own namespace 2025-01-01 15:42:04 +01:00
Maschell
67b84311b3 ButtonComboAPI: Add C++ wrapper for button combo api 2024-12-31 12:56:06 +01:00
Maschell
8e1c883826 ButtonComboAPI: Added "triggeredBy param to combo callback 2024-12-31 12:56:06 +01:00
Maschell
332494d478 ButtonComboAPI: Split up header into api and defines, move into directory 2024-12-31 12:56:06 +01:00
Maschell
6e1c40fc39 ConfigAPI: release handle in move operator/constructor before overwriting it. 2024-12-30 14:18:51 +01:00
Maschell
5dc33a32ff ButtonComboAPI: Hold duration is now measure in ms instead of frames 2024-12-30 14:08:20 +01:00
Maschell
5a62c347d2 Add additional includes back to config_api.h 2024-12-30 14:08:20 +01:00
Maschell
ff2cf0062f Initial implementation of WUPSButtonComboAPI 2024-12-26 15:28:34 +01:00
Maschell
6c7937613a Bump plugin version to 0.8.2 2024-12-26 15:28:34 +01:00
Maschell
6fa6b3fc7d Fix formatting 2024-12-26 15:28:34 +01:00
Ash
276d923569
Enable LTO build (#77)
* fix(Makefile): Don't double up on optimisation flags

This is already provided by BUILD_CFLAGS later on

* feat(common): Mark explicitly-placed things as used

If we put something in a given section, we should be able to expect it to actually turn up in that section!

Doing this will prevent LTO from slurping all the hooks away as "unused".

* feat: Enable LTO

This uses "fat" binaries, so normal builds won't break, but also includes the LTO data for builds that wish to use it
2024-12-14 11:11:07 +01:00
Daniel K. O.
1ac579aebb
Add WUPSConfigAPI_GetMenuOpen() to detect if the config menu is open. (#76)
* Add `WUPSConfigAPI_IsMenuOpen()` to detect if the config menu is open.

* Changed function signature and name to match other functions.

* - Renamed function from `WUPSConfigAPI_GetMenuOpen()` to `WUPSConfigAPI_GetMenuOpen()`.
- Changed result type from `BOOL` to `WUPSConfigAPIMenuStatus` enum.

---------

Co-authored-by: Daniel K. O. (dkosmari) <none@none>
2024-11-28 19:43:24 +01:00
Maschell
e9f5674f62 Bump version to 0.8.1 2024-05-05 14:41:06 +02:00
Maschell
f871b7f228 StorageAPI: Update documentation and fix storage test plugin 2024-05-05 14:41:06 +02:00
Maschell
967f42be43 Config: Update WUPSConfigComplexPadData to hold information for all 7 possible kpads 2024-05-05 14:41:06 +02:00
Maschell
989b129834 Fix move operator for WUPSConfigItem 2024-04-25 13:57:35 +02:00
Maschell
5de93f178a Fix move operator for WUPSConfigCategory 2024-04-25 13:57:35 +02:00
Maschell
c3f5bd8d7b StorageAPI: Add support for loading/storing empty strings/binaries 2024-04-25 13:57:35 +02:00
Maschell
83bb5e9d27 StorageAPI: Avoid -Wunused-parameter 2024-04-25 13:57:35 +02:00
Maschell
6f53d72e2d StorageAPI: Add different "modes" for reading binary and string data into an buffer (C++ API only) 2024-04-25 13:57:35 +02:00
Maschell
f534559706 StorageAPI: Change WUPSStorageAPI_GetItemSize to add item type 2024-04-25 13:57:35 +02:00
Maschell
7ef3bfa9bc Add documentation of StorageAPI 2024-04-25 13:57:35 +02:00
Maschell
6879d15ce4 StorageAPI improvements 2024-04-25 13:57:35 +02:00
Maschell
332ec41488 Change version to 0.8.0 2024-04-25 13:57:35 +02:00
Maschell
aed8b5af43 ConfigAPI: Some more changes, added C++ Wrapper 2024-04-25 13:57:35 +02:00
Maschell
ba3cd165dd New config API 2024-04-25 13:57:35 +02:00
Maschell
a56d1698b3 Implement __assert_func and __assert, improve abort() 2024-04-25 13:57:35 +02:00
Maschell
58a2d3f734 Rewrite of the StorageAPI 2024-04-25 13:57:35 +02:00
Maschell
f0bf943f72 Add missing OSFatal declaration 2023-07-19 15:20:26 +02:00
Maschell
80a9893f56 Make sure wut_get_thread_specific has been overriden properly 2023-07-19 15:08:42 +02:00
Maschell
b2ae19f572 Fix reent support 2023-06-22 16:27:58 +02:00
Maschell
e40d91fcec StorageAPI: Only proccess items for the last returned sub category or root item. 2023-02-15 19:46:29 +01:00
Maschell
7f76e31e70 Revert "Avoid reallocations of the parent data for WUPS_STORAGE_TYPE_ITEM items." 2023-02-15 19:46:29 +01:00
Maschell
90d1e51922 StorageAPI: Rename pending_delete to deleted 2023-01-26 14:42:31 +01:00
Maschell
933e676c52 StorageAPI: Avoid reallocations of the parent data for WUPS_STORAGE_TYPE_ITEM items. This is dirty workaround to keep outPtr of WUPS_CreateSubItem always valid. 2023-01-26 14:42:31 +01:00
Maschell
8306df96ae StorageAPI: Return an error if memory allocation fails 2023-01-26 14:42:31 +01:00
Maschell
98623f15ab Make the config API C compatible 2023-01-24 21:46:33 +01:00
Maschell
c867b01e4d ConfigItems: Use strdup for string duplication, rename configID to configId in WUPSConfigItemMultipleValues 2022-09-24 18:58:27 +02:00
Maschell
e649e4c93d ConfigItems: Add configId to all item structs 2022-09-24 18:58:27 +02:00
Maschell
51f627dc6e Define more WUPS_CONFIG_BUTTON_* values 2022-09-23 21:34:59 +02:00
Maschell
b1a9ffcb32 Adds a stub WUPSConfigItem for displaying data 2022-09-19 00:52:01 +02:00
Maschell
7b9868bd0e Fix potential memory leak when creating config items fails 2022-09-19 00:52:01 +02:00
Maschell
104e6e1249 Add WUPS_GetStorageStatusStr 2022-09-04 10:33:37 +02:00
Maschell
a2f75edfeb Return WUPSStorageError enum instead of int for storage API 2022-09-04 10:33:37 +02:00
Maschell
21d5951ef0 Override abort() with OSFatal and bump WUPS version to 0.7.1 2022-05-13 12:31:49 +02:00
Maschell
ac47ebc84e Remove ON_FUNCTIONS_PATCHED hook 2022-05-13 12:31:49 +02:00
Maschell
d3cf0691ef Add clang-format for formatting, check building the example in CI 2022-02-03 16:24:36 +01:00
Maschell
9d41a89c45 WUPS 0.7 - Add __init and __fini wrapper 2022-01-22 13:18:31 +01:00