mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
バージョン情報の代わりに日付をいれるように変更。
簡易フォーマットはメニュー表示で「FORMAT」としていましたが実際の動作と乖離しているため「Clean Up」に変更しました。 SDカードの挿抜イベントコードを削除。 git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@973 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
35f64fc543
commit
0b29dbf56e
@ -11,8 +11,8 @@
|
|||||||
in whole or in part, without the prior written consent of Nintendo.
|
in whole or in part, without the prior written consent of Nintendo.
|
||||||
|
|
||||||
$Date:: $
|
$Date:: $
|
||||||
$Rev:$
|
$Rev$
|
||||||
$Author:$
|
$Author$
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include <nitro.h>
|
#include <nitro.h>
|
||||||
@ -99,6 +99,7 @@ const u16 PlttDataMain[16][16] = {
|
|||||||
{RGB555(31, 31, 31), RGB555(31, 31, 31), RGB555(31, 31, 31), RGB555(31, 31, 31),}, // White
|
{RGB555(31, 31, 31), RGB555(31, 31, 31), RGB555(31, 31, 31), RGB555(31, 31, 31),}, // White
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// 下画面コンソール文字列パレット
|
||||||
const u16 PlttDataSub[16][16] = {
|
const u16 PlttDataSub[16][16] = {
|
||||||
{RGB555(31, 31, 31), RGB555( 0, 0, 0), RGB555(25, 25, 25), RGB555(31, 31, 31),}, // Black
|
{RGB555(31, 31, 31), RGB555( 0, 0, 0), RGB555(25, 25, 25), RGB555(31, 31, 31),}, // Black
|
||||||
{RGB555(31, 31, 31), RGB555(21, 0, 0), RGB555(31, 0, 0), RGB555(31, 0, 0),}, // Red
|
{RGB555(31, 31, 31), RGB555(21, 0, 0), RGB555(31, 0, 0), RGB555(31, 0, 0),}, // Red
|
||||||
@ -108,7 +109,7 @@ const u16 PlttDataSub[16][16] = {
|
|||||||
{RGB555(31, 31, 31), RGB555(0, 21, 21), RGB555(0, 31, 31), RGB555(0, 31, 31),}, // Cyan
|
{RGB555(31, 31, 31), RGB555(0, 21, 21), RGB555(0, 31, 31), RGB555(0, 31, 31),}, // Cyan
|
||||||
{RGB555(31, 31, 31), RGB555(21, 0, 21), RGB555(31, 0, 31), RGB555(31, 0, 31),}, // Purple
|
{RGB555(31, 31, 31), RGB555(21, 0, 21), RGB555(31, 0, 31), RGB555(31, 0, 31),}, // Purple
|
||||||
{RGB555(31, 31, 31), RGB555(31, 31, 31), RGB555(31, 31, 31), RGB555(31, 31, 31),}, // White
|
{RGB555(31, 31, 31), RGB555(31, 31, 31), RGB555(31, 31, 31), RGB555(31, 31, 31),}, // White
|
||||||
{RGB555(31, 31, 31), RGB555(31, 31, 31), RGB555(31, 31, 31), RGB555(31, 31, 31),}, // White
|
{RGB555(31, 31, 31), RGB555(20, 20, 20), RGB555(20, 20, 20), RGB555(20, 20, 20),}, // Gray
|
||||||
{RGB555(31, 31, 31), RGB555(31, 31, 31), RGB555(31, 31, 31), RGB555(31, 31, 31),}, // White
|
{RGB555(31, 31, 31), RGB555(31, 31, 31), RGB555(31, 31, 31), RGB555(31, 31, 31),}, // White
|
||||||
{RGB555(31, 31, 31), RGB555(31, 31, 31), RGB555(31, 31, 31), RGB555(31, 31, 31),}, // White
|
{RGB555(31, 31, 31), RGB555(31, 31, 31), RGB555(31, 31, 31), RGB555(31, 31, 31),}, // White
|
||||||
{RGB555(31, 31, 31), RGB555(31, 31, 31), RGB555(31, 31, 31), RGB555(31, 31, 31),}, // White
|
{RGB555(31, 31, 31), RGB555(31, 31, 31), RGB555(31, 31, 31), RGB555(31, 31, 31),}, // White
|
||||||
|
|||||||
@ -11,8 +11,8 @@
|
|||||||
in whole or in part, without the prior written consent of Nintendo.
|
in whole or in part, without the prior written consent of Nintendo.
|
||||||
|
|
||||||
$Date:: $
|
$Date:: $
|
||||||
$Rev:$
|
$Rev$
|
||||||
$Author:$
|
$Author$
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include <twl.h>
|
#include <twl.h>
|
||||||
|
|||||||
@ -87,16 +87,8 @@ TwlMain()
|
|||||||
// initialize file-system
|
// initialize file-system
|
||||||
FS_Init(FS_DMA_NOT_USE);
|
FS_Init(FS_DMA_NOT_USE);
|
||||||
// SDカードの挿抜イベント監視コールバック設定
|
// SDカードの挿抜イベント監視コールバック設定
|
||||||
FS_RegisterEventHook("sdmc", &sSDHook, SDEvents, NULL);
|
// FS_RegisterEventHook("sdmc", &sSDHook, SDEvents, NULL);
|
||||||
|
|
||||||
|
|
||||||
// SD起動などあらゆるマウント状態に対応する
|
|
||||||
/*
|
|
||||||
FATFS_UnmountDrive("F:");
|
|
||||||
FATFS_UnmountDrive("G:");
|
|
||||||
FATFS_MountDrive("F", FATFS_MEDIA_TYPE_NAND, 0);
|
|
||||||
FATFS_MountDrive("G", FATFS_MEDIA_TYPE_SD, 0);
|
|
||||||
*/
|
|
||||||
// NAMライブラリ初期化
|
// NAMライブラリ初期化
|
||||||
NAM_Init( OS_AllocFromMain, OS_FreeToMain);
|
NAM_Init( OS_AllocFromMain, OS_FreeToMain);
|
||||||
|
|
||||||
|
|||||||
@ -99,7 +99,7 @@ void* FormatProcess0(void)
|
|||||||
|
|
||||||
// メニュー一覧
|
// メニュー一覧
|
||||||
kamiFontPrintf(3, 6, FONT_COLOR_BLACK, "+-------------------+-----+");
|
kamiFontPrintf(3, 6, FONT_COLOR_BLACK, "+-------------------+-----+");
|
||||||
kamiFontPrintf(3, 7, FONT_COLOR_BLACK, "l FORMAT l l");
|
kamiFontPrintf(3, 7, FONT_COLOR_BLACK, "l NAND Clean Up l l");
|
||||||
kamiFontPrintf(3, 8, FONT_COLOR_BLACK, "+-------------------+-----+");
|
kamiFontPrintf(3, 8, FONT_COLOR_BLACK, "+-------------------+-----+");
|
||||||
kamiFontPrintf(3, 9, FONT_COLOR_BLACK, "l CHECK DISK l l");
|
kamiFontPrintf(3, 9, FONT_COLOR_BLACK, "l CHECK DISK l l");
|
||||||
kamiFontPrintf(3, 10, FONT_COLOR_BLACK, "+-------------------+-----+");
|
kamiFontPrintf(3, 10, FONT_COLOR_BLACK, "+-------------------+-----+");
|
||||||
|
|||||||
@ -91,12 +91,6 @@ static BOOL s_isReadTSD;
|
|||||||
“à•”ŠÖ<EFBFBD>”<EFBFBD>錾
|
“à•”ŠÖ<EFBFBD>”<EFBFBD>錾
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
void HWInfoWriterInit( void );
|
|
||||||
static void ReadTWLSettings( void );
|
|
||||||
static void ModifyLanguage( u8 region );
|
|
||||||
static void ReadPrivateKey( void );
|
|
||||||
static void ReadHWInfoFile( void );
|
|
||||||
static void VerifyHWInfo( void );
|
|
||||||
static BOOL WriteHWInfoFile( u8 region );
|
static BOOL WriteHWInfoFile( u8 region );
|
||||||
static BOOL WriteHWNormalInfoFile( void );
|
static BOOL WriteHWNormalInfoFile( void );
|
||||||
static BOOL WriteHWSecureInfoFile( u8 region );
|
static BOOL WriteHWSecureInfoFile( u8 region );
|
||||||
|
|||||||
@ -84,10 +84,11 @@ void* TopmenuProcess0(void)
|
|||||||
|
|
||||||
// バージョン表示
|
// バージョン表示
|
||||||
#ifndef NAND_FORMATTER_MODE
|
#ifndef NAND_FORMATTER_MODE
|
||||||
kamiFontPrintf(4, 2, 0, "Nand Initializer ver 0.1");
|
kamiFontPrintf(8, 2, 0, "Nand Initializer");
|
||||||
#else
|
#else
|
||||||
kamiFontPrintf(4, 2, 0, "Nand Formatter ver 0.1");
|
kamiFontPrintf(9, 2, 0, "Nand Formatter");
|
||||||
#endif
|
#endif
|
||||||
|
kamiFontPrintf(9, 4, 8, "<%s>", __DATE__);
|
||||||
|
|
||||||
// メニュー一覧
|
// メニュー一覧
|
||||||
kamiFontPrintf(3, 7, FONT_COLOR_BLACK, " FORMAT NAND ");
|
kamiFontPrintf(3, 7, FONT_COLOR_BLACK, " FORMAT NAND ");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user