Difference between revisions of "SetSetupSetting"

From WikiPrizm
Jump to navigationJump to search
 
Line 7: Line 7:
 
| parameters = * '''SystemParameterNo''' - index of the setting to change.
 
| parameters = * '''SystemParameterNo''' - index of the setting to change.
 
* '''SystemParameterValue''' - new value of the setting.
 
* '''SystemParameterValue''' - new value of the setting.
 +
| comments = This function does no bounds checking meaning that with an incorrect value of SystemParameterNo you may accidentally overwrite a byte that does not pertain to setup settings.
 
| example = The following example sets the keyboard input method to lowercase alpha-lock:
 
| example = The following example sets the keyboard input method to lowercase alpha-lock:
 
  <nowiki>SetSetupSetting((unsigned int)0x14, 0x88);</nowiki>
 
  <nowiki>SetSetupSetting((unsigned int)0x14, 0x88);</nowiki>
 
}}
 
}}

Latest revision as of 20:58, 14 February 2015


Synopsis

Header: fxcg/system.h
Syscall index: 0x0032
Function signature: void SetSetupSetting(unsigned int SystemParameterNo, unsigned char SystemParameterValue)

Sets a Setup setting to the given value.

Parameters

  • SystemParameterNo - index of the setting to change.
  • SystemParameterValue - new value of the setting.

Comments

This function does no bounds checking meaning that with an incorrect value of SystemParameterNo you may accidentally overwrite a byte that does not pertain to setup settings.

Example

The following example sets the keyboard input method to lowercase alpha-lock:

SetSetupSetting((unsigned int)0x14, 0x88);