nn::erreula::CTR::Config

nn::erreula::CTR::Config Structure

Syntax

struct Config
{
ErrorType errorType;
s32 errorCode;
s16 upperScreenFlag;
u16 useLanguage;
wchar_t errorText[ERROR_TEXT_LENGTH_MAX];
bool homeButton;
bool softwareReset;
bool appJump;
ReturnCode returnCode;
u16 eulaVersion;
};

Description

This is the structure that is exchanged between the application and the error EULA applet and stores various data.

You must always call the InitializeConfig function to initialize this structure before setting its member variables.

Member Variables

Input
errorType ErrorType The type of applet to be called.
errorCode s32 Error Code
upperScreenFlag s16 Flag indicating the display method for the upper screen. Invalid setting. The stereoscopic view of the upper screen is inherited from application status, so this does nothing even if specified.
useLanguage u16 The language to use. If a language that cannot be specified in System Settings is specified here, Japanese will be assumed for systems whose system region is Japan, and English will be assumed for systems whose system region is the Americas or Europe.
errorText wchar_t Freely defined text string for displaying an error. Up to 1900 characters including NULL terminator.
homeButton bool Specifies whether the error EULA applet should exit when the HOME Button is pressed. The error EULA applet exits if true is specified and the HOME Button is pressed.
softwareReset bool Specifies whether to use software reset. The erorr EULA applet exits if true is specified and the button combination for software reset is pressed.
appJump bool After the error is displayed, if true is set for whether to display a dialog and prompt an application jump to system settings, a dialog for guiding the user to system settings is displayed. Just display the message and have the application take care of the application jump.
Output
returnCode ReturnCode Return code.
eulaVersion u16 The EULA version that the end user has agreed to.

Revision History

2011/08/04
Initial version.

CONFIDENTIAL