1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=utf-8"> 6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 6.5.0.0 for Windows"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 9<title>CNTSetAutoFatalMessaging</title> 10</head> 11 12<body> 13 14<h1>CNTSetAutoFatalMessaging</h1> 15 16<h2>Syntax</h2> 17<dl><dd><pre class="construction"> 18#include <revolution/cnt.h> 19 20BOOL CNTSetAutoFatalMessaging(BOOL enable); 21</pre></dd></dl> 22 23<h2>Arguments</h2> 24<TABLE class="arguments" border="1" > 25 <tr> 26 <TH>enable</TH> 27 <TD><CODE>TRUE</CODE> (the default setting) enables Auto Fatal Message mode. <CODE>FALSE</CODE> disables this mode.</TD> 28 </tr> 29</TABLE> 30 31<h2>Return Values</h2> 32<P>Returns <CODE>TRUE</CODE> if Auto Fatal Message mode is enabled and <CODE>FALSE</CODE> if it is disabled.</P> 33 34<h2>Description</h2> 35<P>Changes the Auto Fatal Message mode.</P> 36<P>When this mode is enabled, the CNT library performs this process when it detects a fatal error regarding corruption of the contents file (<CODE>CNT_RESULT_ECC_CRIT</CODE> or <CODE>CNT_RESULT_AUTHENTICATION</CODE>) or corruption of Wii console NAND memory (<code>CNT_RESULT_CORRUPT</code>). In other words, it displays the appropriate error message on the TV screen and calls the <code>OSFatal</code> function to immediately disconnect. During this time, no application code can execute. Developers therefore don't need to worry about these error messages.</P> 37 38<P>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.</P> 39<P>Note that by default, the Auto Fatal Message mode is enabled. Developers who plan to implement their own FATAL error message must call <CODE>CNTSetAutoFatalMessaging(FALSE)</CODE> at the start of their applications.</P> 40<P>Also note that the application is still responsible for displaying messages for other errors.</P> 41 42<h2>See Also</h2> 43<p class="reference"> 44<a href="../os/Error/OSFatal.html">OSFatal</a> 45</p> 46 47<H2>Revision History</H2> 48<P> 492009/07/21 Initial version. 50</P> 51 52<hr><p>CONFIDENTIAL</p></body> 53</html>