mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
TwlSDKとTwlIPLのSVNリビジョン番号を取得して、ランチャーと本体設定で表示するよう変更。
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@776 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
9209b3732a
commit
ad4eaa2706
@ -26,6 +26,8 @@ TARGET_PLATFORM = TWL
|
||||
TWL_ARCHGEN = LIMITED
|
||||
TWL_PROC = ARM9
|
||||
|
||||
REVISION_SRC = src/revision.c
|
||||
|
||||
SRCS = sysmenu_lib.c \
|
||||
util.c \
|
||||
ninLogoFunc.c \
|
||||
@ -35,7 +37,8 @@ SRCS = sysmenu_lib.c \
|
||||
title.c \
|
||||
banner.c \
|
||||
../common/src/status.c \
|
||||
../common/src/pxi.c
|
||||
../common/src/pxi.c \
|
||||
$(REVISION_SRC)
|
||||
|
||||
|
||||
TARGET_LIB = libsysmenu$(TWL_LIBSUFFIX).a
|
||||
@ -49,13 +52,29 @@ LINCLUDES = $(ROOT)/build/libraries/mb/common/include \
|
||||
$(ROOT)/build/libraries/spi/ARM9/include \
|
||||
$(SYSMENU_ROOT)/build/libraries_sysmenu/sysmenu/common/include
|
||||
|
||||
LDIRT_CLEAN = $(REVISION_SRC)
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
do-build: $(MYSUBDIRS) $(TARGETS)
|
||||
do-build: $(REVISION_SRC) $(MYSUBDIRS) $(TARGETS)
|
||||
|
||||
include $(TWL_IPL_RED_ROOT)/build/buildtools/modulerules
|
||||
|
||||
|
||||
#SVNƒŠƒrƒWƒ‡ƒ“–„‚ß<E2809A>ž‚Ý
|
||||
$(REVISION_SRC) ::
|
||||
@if test -e $(SYSMENU_ROOT)/.svn; then \
|
||||
svn info $(SYSMENU_ROOT) | grep 'Revision' | sed "s|Revision: \(.*\)|const char *g_strIPLSvnRevision = \"\1\";|" > $(REVISION_SRC); \
|
||||
else \
|
||||
echo "const char *g_strIPLSvnRevision = \"-\"" > $(REVISION_SRC); \
|
||||
fi
|
||||
@if test -e $(ROOT)/.svn; then \
|
||||
svn info $(ROOT) | grep 'Revision' | sed "s|Revision: \(.*\)|const char *g_strSDKSvnRevision = \"\1\";|" >> $(REVISION_SRC); \
|
||||
else \
|
||||
echo "const char *g_strSDKSvnRevision = \"-\"" >> $(REVISION_SRC); \
|
||||
fi
|
||||
|
||||
|
||||
$(MYSUBDIRS)::
|
||||
# $(MAKE) -C $@ -f MakeCrt0
|
||||
|
||||
|
||||
@ -396,7 +396,9 @@ void LauncherInit( TitleProperty *pTitleList )
|
||||
GX_LoadBG2Scr(bg_scr_data2, 0, sizeof(bg_scr_data2));
|
||||
|
||||
DrawBackLightSwitch();
|
||||
PrintfSJIS( 0, 0, TXT_COLOR_BLUE, "TWL-SYSTEM MENU ver.%06x", SYSMENU_VER );
|
||||
PutStringUTF16( 0, 0, TXT_COLOR_BLUE, L"TWL-SYSTEM MENU" );
|
||||
PrintfSJIS( 128, 0, TXT_COLOR_BLUE, "IPL:%s", g_strIPLSvnRevision );
|
||||
PrintfSJIS( 128, 12, TXT_COLOR_BLUE, "SDK:%s", g_strSDKSvnRevision );
|
||||
|
||||
SVC_CpuClear( 0x0000, &tpd, sizeof(TpWork), 16 );
|
||||
|
||||
|
||||
@ -26,7 +26,6 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
// define data-------------------------------------------------------
|
||||
#define SYSMENU_VER 0x071115
|
||||
|
||||
// global variables--------------------------------------------------
|
||||
|
||||
|
||||
@ -163,7 +163,7 @@ void MachineSettingInit( void )
|
||||
GX_LoadBG1Char(bg_char_data, 0, sizeof(bg_char_data));
|
||||
GX_LoadBG1Scr(bg_scr_data, 0, sizeof(bg_scr_data));
|
||||
|
||||
PutStringUTF16( 0, 0, TXT_COLOR_BLUE, (const u16 *)L"MACHINE SETTINGS" );
|
||||
PrintfSJIS( 0, 0, TXT_COLOR_BLUE, "MACHINE SETTINGS IPL:%s SDK:%s", g_strIPLSvnRevision, g_strSDKSvnRevision );
|
||||
|
||||
// NITRO設定データのlanguageに応じたメインメニュー構成言語の切り替え
|
||||
for( i = 0; i < SETTING_MENU_ELEMENT_NUM; i++ ) {
|
||||
|
||||
@ -72,6 +72,8 @@ typedef enum AuthResult {
|
||||
|
||||
// global variable------------------------------------------------------
|
||||
#ifdef SDK_ARM9
|
||||
extern const char *g_strIPLSvnRevision;
|
||||
extern const char *g_strSDKSvnRevision;
|
||||
extern void *SYSM_Alloc( u32 size );
|
||||
extern void SYSM_Free( void *ptr );
|
||||
//extern void *(*SYSM_Alloc)( u32 size ); // ライブラリ内部使用
|
||||
|
||||
Loading…
Reference in New Issue
Block a user