mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
Selectボタンを押しながらAボタンを押して実行した場合、TwlNMenuとNandFilerを消去する機能を追加。
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2852 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
c53723e556
commit
63dbe038de
@ -60,6 +60,7 @@ extern const char *g_strSDKSvnRevision;
|
|||||||
extern s32 gLockId;
|
extern s32 gLockId;
|
||||||
extern const u16* sRegionStringArray[OS_TWL_REGION_MAX];
|
extern const u16* sRegionStringArray[OS_TWL_REGION_MAX];
|
||||||
extern OSTWLRegion gRegion;
|
extern OSTWLRegion gRegion;
|
||||||
|
extern BOOL gIsDeleteNMenuAndNandFiler;
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*
|
/*---------------------------------------------------------------------------*
|
||||||
ŠÖ<EFBFBD>”<EFBFBD>錾
|
ŠÖ<EFBFBD>”<EFBFBD>錾
|
||||||
|
|||||||
@ -42,6 +42,12 @@
|
|||||||
#define TITLE_ID_HND_NUM 3
|
#define TITLE_ID_HND_NUM 3
|
||||||
#define TITLE_ID_HNE_NUM 3
|
#define TITLE_ID_HNE_NUM 3
|
||||||
|
|
||||||
|
/*---------------------------------------------------------------------------*
|
||||||
|
グローバル変数定義
|
||||||
|
*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
BOOL gIsDeleteNMenuAndNandFiler = FALSE;
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*
|
/*---------------------------------------------------------------------------*
|
||||||
“à•”•Ï<EFBFBD>”’è‹`
|
“à•”•Ï<EFBFBD>”’è‹`
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
@ -261,6 +267,15 @@ BOOL ProcessDeleteOtherResionSysmenu(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TwlNMenuとNandFilerを消去する
|
||||||
|
if (gIsDeleteNMenuAndNandFiler == TRUE)
|
||||||
|
{
|
||||||
|
// TwlNMenu
|
||||||
|
ret &= DeleteTitle( 0x0003001534544e41 );
|
||||||
|
// NandFiler
|
||||||
|
ret &= DeleteTitle( 0x00030015344e4641 );
|
||||||
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -115,6 +115,12 @@ void ProcessNote(void)
|
|||||||
}
|
}
|
||||||
else if (kamiPadIsTrigger(PAD_BUTTON_A))
|
else if (kamiPadIsTrigger(PAD_BUTTON_A))
|
||||||
{
|
{
|
||||||
|
// Aボタンを押したときにSELECTボタンも押していた場合
|
||||||
|
// NMenuとNandFilerのインポートをスキップして、削除する
|
||||||
|
if (kamiPadIsPress(PAD_BUTTON_SELECT))
|
||||||
|
{
|
||||||
|
gIsDeleteNMenuAndNandFiler = TRUE;
|
||||||
|
}
|
||||||
while (!FadeOutTick())
|
while (!FadeOutTick())
|
||||||
{
|
{
|
||||||
OS_WaitVBlankIntr();
|
OS_WaitVBlankIntr();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user