mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
・ロットチェック向けSystemUpdaterビルドスイッチFOR_LOTCHECKを追加。 ・FOR_LOTCHECK定義時にdev.kpを削除するよう変更。 ・ショップとNintendoゾーンも対象リージョン以外のものを削除するよう変更。 git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2726 b08762b0-b915-fc4b-9d8c-17b2551a87ff
90 lines
2.7 KiB
C
90 lines
2.7 KiB
C
/*---------------------------------------------------------------------------*
|
|
Project: SystemUpdater
|
|
File: process_write_dummy.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 <twl.h>
|
|
#include "font.h"
|
|
#include "graphics.h"
|
|
#include "keypad.h"
|
|
#include "debugger_hw_reset_control.h"
|
|
#include "debugger_card_rom.h"
|
|
#include "kami_global.h"
|
|
#include "kami_copy_file.h"
|
|
#include "kami_font.h"
|
|
|
|
/*---------------------------------------------------------------------------*
|
|
型定義
|
|
*---------------------------------------------------------------------------*/
|
|
|
|
/*---------------------------------------------------------------------------*
|
|
グローバル変数定義
|
|
*---------------------------------------------------------------------------*/
|
|
|
|
/*---------------------------------------------------------------------------*
|
|
内部定数定義
|
|
*---------------------------------------------------------------------------*/
|
|
#ifdef FOR_LOTCHECK
|
|
#define DUMMY_FILE_NUM 1
|
|
#else
|
|
#define DUMMY_FILE_NUM 2
|
|
#endif
|
|
static const char* sDummyFileList[DUMMY_FILE_NUM] =
|
|
{
|
|
"nand:/shared2/launcher/wrap.bin", // ないと本体初期化でこける
|
|
#ifndef FOR_LOTCHECK
|
|
"nand:/sys/dev.kp" // ないとアプリ管理画面が表示されない
|
|
#endif
|
|
};
|
|
|
|
/*---------------------------------------------------------------------------*
|
|
内部変数定義
|
|
*---------------------------------------------------------------------------*/
|
|
|
|
/*---------------------------------------------------------------------------*
|
|
内部関数定義
|
|
*---------------------------------------------------------------------------*/
|
|
|
|
/*---------------------------------------------------------------------------*
|
|
Name: ProcessWriteDummy
|
|
|
|
Description:
|
|
|
|
Arguments: なし。
|
|
|
|
Returns: なし。
|
|
*---------------------------------------------------------------------------*/
|
|
BOOL ProcessWriteDummy(void)
|
|
{
|
|
BOOL ret = TRUE;
|
|
s32 i;
|
|
|
|
for (i=0;i<DUMMY_FILE_NUM;i++)
|
|
{
|
|
if (!kamiCreateDummyData(sDummyFileList[i]))
|
|
{
|
|
kamiFontPrintfConsole(FONT_COLOR_RED, "Write Dummy %d Fail!\n", i);
|
|
ret = FALSE;
|
|
}
|
|
}
|
|
#ifdef FOR_LOTCHECK
|
|
FS_DeleteFile("nand:/sys/dev.kp");
|
|
#endif
|
|
|
|
OS_WaitVBlankIntr();
|
|
kamiFontLoadScreenData();
|
|
return ret;
|
|
}
|