mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
ランチャーのアプリリージョンチェックをデバッガビルド時のデバッガ動作時のみ行うよう変更。
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2812 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
4445f7e12e
commit
8af9d2d1ad
@ -39,6 +39,7 @@ INSTALL_TARGETS = $(TARGETS)
|
|||||||
INSTALL_DIR = $(SYSMENU_INSTALL_LIBDIR)
|
INSTALL_DIR = $(SYSMENU_INSTALL_LIBDIR)
|
||||||
|
|
||||||
LINCLUDES = $(ROOT)/build/libraries/spi/ARM9/include \
|
LINCLUDES = $(ROOT)/build/libraries/spi/ARM9/include \
|
||||||
|
$(SYSMENU_ROOT)/build/libraries_sysmenu/sysmenu/common/include
|
||||||
|
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
@ -20,6 +20,9 @@
|
|||||||
|
|
||||||
#include <twl.h>
|
#include <twl.h>
|
||||||
#include <twl/os/common/format_rom.h>
|
#include <twl/os/common/format_rom.h>
|
||||||
|
#ifdef SYSM_BUILD_FOR_DEBUGGER
|
||||||
|
#include <sysmenu/sysmenu_lib/common/sysmenu_work.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@ -133,10 +136,12 @@ static inline BOOL UTL_CheckAppRegion( u32 card_region_bitmap )
|
|||||||
{
|
{
|
||||||
#ifdef SYSM_BUILD_FOR_DEBUGGER
|
#ifdef SYSM_BUILD_FOR_DEBUGGER
|
||||||
#pragma unused(card_region_bitmap)
|
#pragma unused(card_region_bitmap)
|
||||||
|
// デバッガ動作時のみ、リージョンチェックを無効にする。
|
||||||
|
if( SYSM_IsRunOnDebugger() ) {
|
||||||
return TRUE;
|
return TRUE;
|
||||||
#else
|
}
|
||||||
return ( card_region_bitmap & ( 0x00000001 << OS_GetRegion() ) ) ? TRUE : FALSE;
|
|
||||||
#endif
|
#endif
|
||||||
|
return ( card_region_bitmap & ( 0x00000001 << OS_GetRegion() ) ) ? TRUE : FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
// CRCチェック
|
// CRCチェック
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user