From 4bf1817756cc07d401340ce0a2e4193d1b9ed0ce Mon Sep 17 00:00:00 2001 From: kamikawa Date: Wed, 27 May 2009 01:46:01 +0000 Subject: [PATCH] =?UTF-8?q?rev2809=E3=81=AE=E3=82=B3=E3=83=9F=E3=83=83?= =?UTF-8?q?=E3=83=88=E3=81=97=E5=BF=98=E3=82=8C=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2822 b08762b0-b915-fc4b-9d8c-17b2551a87ff --- .../ARM9.TWL/include/process_error.h | 49 +++++++++++ .../ARM9.TWL/src/process_error.c | 86 +++++++++++++++++++ 2 files changed, 135 insertions(+) create mode 100644 build/systemMenu_tools/NandInitializerRed/ARM9.TWL/include/process_error.h create mode 100644 build/systemMenu_tools/NandInitializerRed/ARM9.TWL/src/process_error.c diff --git a/build/systemMenu_tools/NandInitializerRed/ARM9.TWL/include/process_error.h b/build/systemMenu_tools/NandInitializerRed/ARM9.TWL/include/process_error.h new file mode 100644 index 00000000..c0a0f0f4 --- /dev/null +++ b/build/systemMenu_tools/NandInitializerRed/ARM9.TWL/include/process_error.h @@ -0,0 +1,49 @@ +/*---------------------------------------------------------------------------* + Project: TwlSDK - NandInitializer + File: process_import.h + + Copyright 2008 Nintendo. All rights reserved. + + These coded instructions, statements, and computer programs contain + proprietary information of Nintendo of America Inc. and/or Nintendo + Company Ltd., and are protected by Federal copyright law. They may + not be disclosed to third parties or copied or duplicated in any form, + in whole or in part, without the prior written consent of Nintendo. + + $Date:: $ + $Rev$ + $Author$ + *---------------------------------------------------------------------------*/ + +#ifndef PROCESS_ERROR_H_ +#define PROCESS_ERROR_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +/*===========================================================================*/ + +#include + +/*---------------------------------------------------------------------------* + 型定義 + *---------------------------------------------------------------------------*/ + +/*---------------------------------------------------------------------------* + 関数定義 + *---------------------------------------------------------------------------*/ + +void* errorProcess(void); + +/*===========================================================================*/ + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /* PROCESS_ERROR_H_ */ + +/*---------------------------------------------------------------------------* + End of file + *---------------------------------------------------------------------------*/ diff --git a/build/systemMenu_tools/NandInitializerRed/ARM9.TWL/src/process_error.c b/build/systemMenu_tools/NandInitializerRed/ARM9.TWL/src/process_error.c new file mode 100644 index 00000000..9dd449dd --- /dev/null +++ b/build/systemMenu_tools/NandInitializerRed/ARM9.TWL/src/process_error.c @@ -0,0 +1,86 @@ +/*---------------------------------------------------------------------------* + Project: TwlSDK - NandInitializer + File: process_eticket.c + + Copyright 2008 Nintendo. All rights reserved. + + These coded instructions, statements, and computer programs contain + proprietary information of Nintendo of America Inc. and/or Nintendo + Company Ltd., and are protected by Federal copyright law. They may + not be disclosed to third parties or copied or duplicated in any form, + in whole or in part, without the prior written consent of Nintendo. + + $Date:: $ + $Rev$ + $Author$ + *---------------------------------------------------------------------------*/ + +#include +#include "kami_font.h" +#include "kami_pxi.h" +#include "process_error.h" +#include "process_fade.h" +#include "cursor.h" + +/*---------------------------------------------------------------------------* + 型定義 + *---------------------------------------------------------------------------*/ + +/*---------------------------------------------------------------------------* + 定数定義 + *---------------------------------------------------------------------------*/ + +/*---------------------------------------------------------------------------* + 内部変数定義 + *---------------------------------------------------------------------------*/ + +/*---------------------------------------------------------------------------* + 内部関数宣言 + *---------------------------------------------------------------------------*/ + +/*---------------------------------------------------------------------------* + プロセス関数定義 + *---------------------------------------------------------------------------*/ + +/*---------------------------------------------------------------------------* + Name: eTicket プロセス0 + + Description: + + Arguments: None. + + Returns: next sequence + *---------------------------------------------------------------------------*/ + +void* errorProcess(void) +{ + int i; + + // 文字列全クリア + kamiFontClear(); + + // バージョン表示 + kamiFontPrintf(2, 1, FONT_COLOR_BLACK, "ERROR"); + kamiFontPrintf(0, 2, FONT_COLOR_BLACK, "--------------------------------"); + + // メニュー一覧 + kamiFontPrintf(3, 8, FONT_COLOR_BLACK, "The region specified in"); + kamiFontPrintf(3, 9, FONT_COLOR_BLACK, "nandinitializer.ini is "); + kamiFontPrintf(3, 10, FONT_COLOR_BLACK, "not equal to the region"); + kamiFontPrintf(3, 11, FONT_COLOR_BLACK, "of this machine. "); + + kamiFontPrintf(3, 13, FONT_COLOR_BLACK, " or "); + kamiFontPrintf(3, 15, FONT_COLOR_BLACK, "nandinitializer.ini is "); + kamiFontPrintf(3, 16, FONT_COLOR_BLACK, "not exist."); + + // 背景全クリア + for (i=0;i<24;i++) + { + kamiFontFillChar( i, BG_COLOR_RED, BG_COLOR_RED ); + } + + // カーソル消去 + SetCursorPos((u16)200, (u16)200); + + return errorProcess; +}