WiiUPluginSystem/include/wups/config/WUPSConfigItemBoolean.h
2023-12-03 11:32:38 +01:00

25 lines
822 B
C

#include <wups.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct ConfigItemBoolean {
char *configId;
WUPSConfigItemHandle handle;
bool defaultValue;
bool value;
char trueValue[32];
char falseValue[32];
void *callback;
} ConfigItemBoolean;
typedef void (*BooleanValueChangedCallback)(ConfigItemBoolean *, bool);
bool WUPSConfigItemBoolean_AddToCategory(WUPSConfigCategoryHandle cat, const char *configId, const char *displayName, bool defaultValue, BooleanValueChangedCallback callback);
bool WUPSConfigItemBoolean_AddToCategoryEx(WUPSConfigCategoryHandle cat, const char *configId, const char *displayName, bool defaultValue, BooleanValueChangedCallback callback, const char *trueValue,
const char *falseValue);
#ifdef __cplusplus
}
#endif