Settings from IOS. More...
#include "ios_settings.h"#include <string.h>#include "system/system.h"#include "ios.h"#include "utils/log.h"Macros | |
| #define | IOS_SETTINGS_LENGTH 256 |
| #define | IOS_CONFIG_LENGTH 0x4000 |
Functions | |
| void | ios_settings_initialize () |
| Pull all the settings through IOS. | |
| const char * | ios_settings_get (const char *key) |
| Get a feild from the settings file. | |
| uint32_t | ios_config_get (const char *key, void *buffer, uint32_t size) |
| Get a feild from the config file. | |
| bool | ios_config_is_progressive_scan () |
| Returns true if the default video mode is progressive scan. | |
| bool | ios_config_is_eurgb60 () |
| Get a feild from the config file. | |
Settings from IOS.
Uses the system settings from IOS to get useful system config.
Handles system wide wiimote settings. These are the wiimote settings specified in /shared2/sys/SYSCONF
It contains like, if the motor is enabled, and connection addresses.
| uint32_t ios_config_get | ( | const char * | key, |
| void * | buffer, | ||
| uint32_t | size ) |
Get a feild from the config file.
Get a feild from the config file. Returns the length of the value retrieved or zero if it could not be found.
You can see the keys and format here: https://wiibrew.org/wiki//shared2/sys/SYSCONF
| key | The key for the feild. |
| buffer | Buffer to put the data into |
| size | Size of the buffer |
| bool ios_config_is_eurgb60 | ( | ) |
Get a feild from the config file.
Returns true if the default video mode is eurgb60
| bool ios_config_is_progressive_scan | ( | ) |
Returns true if the default video mode is progressive scan.
Returns true if the default video mode is progressive scan.
| const char * ios_settings_get | ( | const char * | key | ) |
Get a feild from the settings file.
Get a feild from the settings file. Returns NULL if the key is not found.
You can see the keys here: https://wiibrew.org/wiki//title/00000001/00000002/data/setting.txt
| key | The key for the feild. |
| void ios_settings_initialize | ( | ) |
Pull all the settings through IOS.
Pull all the settings through IOS. Usually called by ios_initialize.