From 02d03d78d4495559fa62dabe6315ff63173c5e99 Mon Sep 17 00:00:00 2001 From: yosiokat Date: Tue, 6 Nov 2007 08:42:35 +0000 Subject: [PATCH] =?UTF-8?q?=E3=83=A9=E3=83=B3=E3=83=81=E3=83=A3=E3=83=BC?= =?UTF-8?q?=E3=81=AE=E3=83=93=E3=83=AB=E3=83=89=E3=81=8C=E9=80=9A=E3=82=8B?= =?UTF-8?q?=E3=82=88=E3=81=86=E4=BF=AE=E6=AD=A3=E3=80=82?= 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@107 b08762b0-b915-fc4b-9d8c-17b2551a87ff --- .../systemMenu_RED/Launcher/ARM9/src/launcher.c | 13 +++++++------ build/systemMenu_RED/Launcher/ARM9/src/main.c | 17 ++++++++++------- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/build/systemMenu_RED/Launcher/ARM9/src/launcher.c b/build/systemMenu_RED/Launcher/ARM9/src/launcher.c index a6db624b..d43db7b8 100644 --- a/build/systemMenu_RED/Launcher/ARM9/src/launcher.c +++ b/build/systemMenu_RED/Launcher/ARM9/src/launcher.c @@ -49,7 +49,7 @@ static u64 old_titleIdArray[TITLE_PROPERTY_NUM]; //=============================================== // Launcher.c //=============================================== -static const u16 *const s_pStrLauncherElemTbl[ LAUNCHER_ELEMENT_NUM ][ LANG_CODE_MAX ] = { +static const u16 *const s_pStrLauncherElemTbl[ LAUNCHER_ELEMENT_NUM ][ TWL_LANG_CODE_MAX ] = { { (const u16 *)L"DSカード", (const u16 *)L"DS Card", @@ -295,7 +295,7 @@ static void BannerDraw(int cursor, int selected, TitleProperty *titleprop) // アプリ名表示 { - NNSG2dChar *str = ((BannerFile *)titleprop[selected].pBanner)->v1.gameName[GetNCDWork()->option.language]; + NNSG2dChar *str = ((BannerFile *)titleprop[selected].pBanner)->v1.gameName[ TSD_GetLanguage() ]; int width = NNS_G2dTextCanvasGetStringWidth(&gTextCanvas, str, NULL); PutStringUTF16( (256-width)/2, 48, TXT_COLOR_BLACK, str ); } @@ -320,7 +320,7 @@ void LauncherInit( TitleProperty *pTitleList ) // NITRO設定データのlanguageに応じたメインメニュー構成言語の切り替え for( i = 0; i < LAUNCHER_ELEMENT_NUM; i++ ) { - s_pStrLauncher[ i ] = s_pStrLauncherElemTbl[ i ][ GetNCDWork()->option.language ]; + s_pStrLauncher[ i ] = s_pStrLauncherElemTbl[ i ][ TSD_GetLanguage() ]; } if( !SYSM_IsNITROCard() ) { @@ -376,7 +376,7 @@ TitleProperty *LauncherMain( TitleProperty *pTitleList ) } if( (pad.trg & PAD_BUTTON_R) || (tp_bl_on_off) ) { - GetNCDWork()->option.backLightOffFlag ^= 0x01; +// TSD_SetBacklightBrightness( TSD_GetBacklightBrightness() ^ 0x01 ); DrawBackLightSwitch(); } @@ -449,13 +449,14 @@ static void DrawBackLightSwitch(void) { u16 color; - if( GetNCDWork()->option.backLightOffFlag ) { +// if( GetNCDWork()->option.backLightOffFlag ) { + if ( 1 ) { color = TXT_COLOR_BLACK; }else { color = TXT_COLOR_RED; } PutStringUTF16( B_LIGHT_BUTTON_TOP_X, B_LIGHT_BUTTON_TOP_Y, color, - str_backlight[ GetNCDWork()->option.backLightOffFlag ] ); + str_backlight[ 0 ] ); } diff --git a/build/systemMenu_RED/Launcher/ARM9/src/main.c b/build/systemMenu_RED/Launcher/ARM9/src/main.c index b32dd269..14757ddb 100644 --- a/build/systemMenu_RED/Launcher/ARM9/src/main.c +++ b/build/systemMenu_RED/Launcher/ARM9/src/main.c @@ -367,11 +367,11 @@ static BOOL CheckBootStatus(void) // NITRO設定データ未入力時の設定メニューショートカット起動 //----------------------------------------------------- #ifdef __DIRECT_BOOT_BMENU_ENABLE // ※NITRO設定データ未入力時のブートメニュー直接起動スイッチがONか? - if( ( (GetNCDWork()->option.input_tp == 0) - ||(GetNCDWork()->option.input_language == 0) - ||(GetNCDWork()->option.input_rtc == 0) - ||(GetNCDWork()->option.input_favoriteColor == 0) - ||(GetNCDWork()->option.input_nickname == 0) ) ) { // TP,言語,RTC,ニックネームがセットされていなければ、ロゴ表示もゲームロードも行わず、ブートメニューをショートカット起動。 + if( !TSD_IsSetTP() || + !TSD_IsSetLanguage() || + !TSD_IsSetDateTime() || + !TSD_IsSetUserColor() || + !TSD_IsSetNickname() ) { // TP,言語,RTC,ニックネームがセットされていなければ、ロゴ表示もゲームロードも行わず、ブートメニューをショートカット起動。 if( ( pad.cont & PAD_PRODUCTION_NITRO_SHORTCUT ) == PAD_PRODUCTION_NITRO_SHORTCUT ) { other_shortcut_off = TRUE; // 量産工程用のキーショートカットが押されていたら、設定メニュー起動はなし。 @@ -387,7 +387,9 @@ static BOOL CheckBootStatus(void) //----------------------------------------------------- // キーショートカット起動 //----------------------------------------------------- - if( !other_shortcut_off && !GetNCDWork()->option.autoBootFlag ) { + if( !other_shortcut_off +// && !TSD_IsAutoBoot() + ) { // 他ショートカットONかつオート起動OFFの時 u32 nowBootFlag = 0; @@ -410,7 +412,8 @@ static BOOL CheckBootStatus(void) // 自動起動オプション有効時の挙動 //----------------------------------------------------- #ifndef __SYSM_DEBUG - if( GetNCDWork()->option.autoBootFlag ) { +// if( TSD_IsAutoBoot() ) { + if( 0 ) { if ( SYSM_IsNITROCard() ) { // NITROカードのみの時はNITRO起動 SYSM_SetBootFlag( BFLG_BOOT_NITRO ); return TRUE; // 「ブート内容決定」でリターン