PowerBlocks SDK
 
Loading...
Searching...
No Matches
ios_settings.h File Reference

Settings from IOS. More...

#include <stdbool.h>
#include <stdint.h>

Go to the source code of this file.

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.
 

Detailed Description

Settings from IOS.

Uses the system settings from IOS to get useful system config.

Author
Samuel Fitzsimons (rainbain)
Date
2025 @license MIT (see LICENSE file)

Function Documentation

◆ ios_config_get()

uint32_t ios_config_get ( const char * key,
void * buffer,
uint32_t size )
extern

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

Parameters
keyThe key for the feild.
bufferBuffer to put the data into
sizeSize of the buffer
Returns
The value of the key in the setting file.

◆ ios_config_is_eurgb60()

bool ios_config_is_eurgb60 ( )
extern

Get a feild from the config file.

Returns true if the default video mode is eurgb60

Returns
>0 = eurgb60 else 50hz

◆ ios_config_is_progressive_scan()

bool ios_config_is_progressive_scan ( )
extern

Returns true if the default video mode is progressive scan.

Returns true if the default video mode is progressive scan.

Returns
>0 = Progressive Scan else Interlaced

◆ ios_settings_get()

const char * ios_settings_get ( const char * key)
extern

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

Parameters
keyThe key for the feild.
Returns
The value of the key in the setting file.

◆ ios_settings_initialize()

void ios_settings_initialize ( )
extern

Pull all the settings through IOS.

Pull all the settings through IOS. Usually called by ios_initialize.