CNTSetAutoFatalMessaging

Syntax

#include <revolution/cnt.h>

BOOL CNTSetAutoFatalMessaging(BOOL enable);

Arguments

enable TRUE (the default setting) enables Auto Fatal Message mode. FALSE disables this mode.

Return Values

Returns TRUE if Auto Fatal Message mode is enabled and FALSE if it is disabled.

Description

Changes the Auto Fatal Message mode.

When this mode is enabled, the CNT library performs this process when it detects a fatal error regarding corruption of the contents file (CNT_RESULT_ECC_CRIT or CNT_RESULT_AUTHENTICATION) or corruption of Wii console NAND memory (CNT_RESULT_CORRUPT). In other words, it displays the appropriate error message on the TV screen and calls the OSFatal function to immediately disconnect. During this time, no application code can execute. Developers therefore don't need to worry about these error messages.

Depending on the system's language setting, the appropriate error message is selected from one of seven languages (English, Japanese, German, French, Spanish, Italian, or Dutch). When the language setting is Simplified Chinese or Korean, an English-language message is displayed with the error code.

Note that by default, the Auto Fatal Message mode is enabled. Developers who plan to implement their own FATAL error message must call CNTSetAutoFatalMessaging(FALSE) at the start of their applications.

Also note that the application is still responsible for displaying messages for other errors.

See Also

OSFatal

Revision History

2009/07/21 Initial version.


CONFIDENTIAL