mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
CardRomHeaderChecker テストケースが増えたので対応
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2748 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
382af8c581
commit
91f317aaa6
@ -16,37 +16,14 @@
|
|||||||
# $Author$
|
# $Author$
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
TARGET_PLATFORM := TWL
|
SUBMAKES = ./Makefile.HYB ./Makefile.LTD
|
||||||
TWL_NANDAPP := TRUE
|
|
||||||
|
|
||||||
SUBDIRS = ../common/banner \
|
|
||||||
$(ROOT)/build/demos/gx/UnitTours/DEMOLib
|
|
||||||
|
|
||||||
TARGET_BIN = CardRomHeaderChecker.tad
|
|
||||||
#INCDIR = ../common/include
|
|
||||||
SRCDIR = ../common/src
|
|
||||||
SRCS = main.c
|
|
||||||
|
|
||||||
ROM_SPEC = ./ROM-TS_nand.rsf
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
include $(TWLSDK_ROOT)/build/buildtools/commondefs
|
include $(TWLSDK_ROOT)/build/buildtools/commondefs
|
||||||
include $(TWLSDK_ROOT)/build/buildtools/commondefs.gx.demolib
|
|
||||||
|
|
||||||
# ƒCƒ“ƒXƒg<C692>[ƒ‹Žw’è
|
|
||||||
ifneq ($(TWL_IPL_RED_ROOT),)
|
|
||||||
INSTALL_DIR = $(TWL_IPL_RED_ROOT)/debugsoft/CardRomHeaderChecker
|
|
||||||
INSTALL_TARGETS = $(BINDIR)/$(TARGET_BIN)
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
do-build: $(TARGETS)
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
LIBSYSCALL = ../common/0CZA/libsyscall.a
|
|
||||||
|
|
||||||
include $(TWLSDK_ROOT)/build/buildtools/modulerules
|
include $(TWLSDK_ROOT)/build/buildtools/modulerules
|
||||||
|
|
||||||
#===== End of Makefile =====
|
#===== End of Makefile =====
|
||||||
|
|||||||
53
build/debugsoft/CardRomHeaderChecker/Nand/Makefile.HYB
Normal file
53
build/debugsoft/CardRomHeaderChecker/Nand/Makefile.HYB
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
#! make -f
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
# Project: TwlSDK - tests - appjumpTest - Card
|
||||||
|
# File: Makefile
|
||||||
|
#
|
||||||
|
# Copyright 2008 Nintendo. All rights reserved.
|
||||||
|
#
|
||||||
|
# These coded instructions, statements, and computer programs contain
|
||||||
|
# proprietary information of Nintendo of America Inc. and/or Nintendo
|
||||||
|
# Company Ltd., and are protected by Federal copyright law. They may
|
||||||
|
# not be disclosed to third parties or copied or duplicated in any form,
|
||||||
|
# in whole or in part, without the prior written consent of Nintendo.
|
||||||
|
#
|
||||||
|
# $Date:: $
|
||||||
|
# $Rev$
|
||||||
|
# $Author$
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
TARGET_PLATFORM := TWL
|
||||||
|
TWL_NANDAPP := TRUE
|
||||||
|
override TWL_ARCHGEN = HYBRID
|
||||||
|
|
||||||
|
SUBDIRS = ../common/banner \
|
||||||
|
$(ROOT)/build/demos/gx/UnitTours/DEMOLib
|
||||||
|
|
||||||
|
TARGET_BIN = CardRomHeaderChecker.tad
|
||||||
|
#INCDIR = ../common/include
|
||||||
|
SRCDIR = ../common/src
|
||||||
|
SRCS = main.c
|
||||||
|
|
||||||
|
ROM_SPEC = ./ROM-TS_nand.HYB.rsf
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
include $(TWLSDK_ROOT)/build/buildtools/commondefs
|
||||||
|
include $(TWLSDK_ROOT)/build/buildtools/commondefs.gx.demolib
|
||||||
|
|
||||||
|
# ƒCƒ“ƒXƒg<C692>[ƒ‹Žw’è
|
||||||
|
ifneq ($(TWL_IPL_RED_ROOT),)
|
||||||
|
INSTALL_DIR = $(TWL_IPL_RED_ROOT)/debugsoft/CardRomHeaderChecker
|
||||||
|
INSTALL_TARGETS = $(BINDIR)/$(TARGET_BIN)
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
do-build: $(TARGETS)
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
LIBSYSCALL = ../common/0CZA/libsyscall.a
|
||||||
|
|
||||||
|
include $(TWLSDK_ROOT)/build/buildtools/modulerules
|
||||||
|
|
||||||
|
#===== End of Makefile =====
|
||||||
53
build/debugsoft/CardRomHeaderChecker/Nand/Makefile.LTD
Normal file
53
build/debugsoft/CardRomHeaderChecker/Nand/Makefile.LTD
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
#! make -f
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
# Project: TwlSDK - tests - appjumpTest - Card
|
||||||
|
# File: Makefile
|
||||||
|
#
|
||||||
|
# Copyright 2008 Nintendo. All rights reserved.
|
||||||
|
#
|
||||||
|
# These coded instructions, statements, and computer programs contain
|
||||||
|
# proprietary information of Nintendo of America Inc. and/or Nintendo
|
||||||
|
# Company Ltd., and are protected by Federal copyright law. They may
|
||||||
|
# not be disclosed to third parties or copied or duplicated in any form,
|
||||||
|
# in whole or in part, without the prior written consent of Nintendo.
|
||||||
|
#
|
||||||
|
# $Date:: $
|
||||||
|
# $Rev$
|
||||||
|
# $Author$
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
TARGET_PLATFORM := TWL
|
||||||
|
TWL_NANDAPP := TRUE
|
||||||
|
override TWL_ARCHGEN = LIMITED
|
||||||
|
|
||||||
|
SUBDIRS = ../common/banner2 \
|
||||||
|
$(ROOT)/build/demos/gx/UnitTours/DEMOLib
|
||||||
|
|
||||||
|
TARGET_BIN = CardRomHeaderChecker.tad
|
||||||
|
#INCDIR = ../common/include
|
||||||
|
SRCDIR = ../common/src
|
||||||
|
SRCS = main.c
|
||||||
|
|
||||||
|
ROM_SPEC = ./ROM-TS_nand.LTD.rsf
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
include $(TWLSDK_ROOT)/build/buildtools/commondefs
|
||||||
|
include $(TWLSDK_ROOT)/build/buildtools/commondefs.gx.demolib
|
||||||
|
|
||||||
|
# ƒCƒ“ƒXƒg<C692>[ƒ‹Žw’è
|
||||||
|
ifneq ($(TWL_IPL_RED_ROOT),)
|
||||||
|
INSTALL_DIR = $(TWL_IPL_RED_ROOT)/debugsoft/CardRomHeaderChecker
|
||||||
|
INSTALL_TARGETS = $(BINDIR)/$(TARGET_BIN)
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
do-build: $(TARGETS)
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
LIBSYSCALL = ../common/0CYA/libsyscall.a
|
||||||
|
|
||||||
|
include $(TWLSDK_ROOT)/build/buildtools/modulerules
|
||||||
|
|
||||||
|
#===== End of Makefile =====
|
||||||
@ -98,12 +98,12 @@ Property
|
|||||||
#
|
#
|
||||||
# Permit LandingNormalJump: for TWL "ApplicationJump" function [TRUE/FALSE]
|
# Permit LandingNormalJump: for TWL "ApplicationJump" function [TRUE/FALSE]
|
||||||
#
|
#
|
||||||
#PermitLandingNormalJump FALSE
|
PermitLandingNormalJump TRUE
|
||||||
|
|
||||||
#
|
#
|
||||||
# Permit LandingTmpJump: for TWL "ApplicationJump" function [TRUE/FALSE]
|
# Permit LandingTmpJump: for TWL "ApplicationJump" function [TRUE/FALSE]
|
||||||
#
|
#
|
||||||
#PermitLandingTmpJump FALSE
|
PermitLandingTmpJump TRUE
|
||||||
|
|
||||||
###
|
###
|
||||||
### Setting for TWL
|
### Setting for TWL
|
||||||
243
build/debugsoft/CardRomHeaderChecker/Nand/ROM-TS_nand.LTD.rsf
Normal file
243
build/debugsoft/CardRomHeaderChecker/Nand/ROM-TS_nand.LTD.rsf
Normal file
@ -0,0 +1,243 @@
|
|||||||
|
#----------------------------------------------------------------------------
|
||||||
|
# Project: TwlSDK - include
|
||||||
|
# File: ROM-TS.rsf
|
||||||
|
#
|
||||||
|
# Copyright 2007 Nintendo. All rights reserved.
|
||||||
|
#
|
||||||
|
# These coded insructions, statements, and computer programs contain
|
||||||
|
# proprietary information of Nintendo of America Inc. and/or Nintendo
|
||||||
|
# Company Ltd., and are protected by Federal copyright law. They may
|
||||||
|
# not be disclosed to third parties or copied or duplicated in any form,
|
||||||
|
# in whole or in part, without the prior written consent of Nintendo.
|
||||||
|
#
|
||||||
|
# $Date:: $
|
||||||
|
# $Rev$
|
||||||
|
# $Author$
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
#
|
||||||
|
# TWL ROM SPEC FILE
|
||||||
|
#
|
||||||
|
|
||||||
|
Arm9
|
||||||
|
{
|
||||||
|
Static "$(MAKEROM_ARM9:r).TWL.FLX.sbin$(COMPSUFFIX9)"
|
||||||
|
OverlayDefs "$(MAKEROM_ARM9:r)_defs.TWL.FLX.sbin$(COMPSUFFIX9)"
|
||||||
|
OverlayTable "$(MAKEROM_ARM9:r)_table.TWL.FLX.sbin$(COMPSUFFIX9)"
|
||||||
|
Elf "$(MAKEROM_ARM9:r).tef"
|
||||||
|
}
|
||||||
|
|
||||||
|
Arm7
|
||||||
|
{
|
||||||
|
Static "$(MAKEROM_ARM7_BASE:r).TWL.FLX.sbin$(COMPSUFFIX7)"
|
||||||
|
OverlayDefs "$(MAKEROM_ARM7_BASE:r)_defs.TWL.FLX.sbin$(COMPSUFFIX7)"
|
||||||
|
OverlayTable "$(MAKEROM_ARM7_BASE:r)_table.TWL.FLX.sbin$(COMPSUFFIX7)"
|
||||||
|
Elf "$(MAKEROM_ARM7_BASE:r).tef"
|
||||||
|
}
|
||||||
|
|
||||||
|
Arm9.Ltd
|
||||||
|
{
|
||||||
|
Static "$(MAKEROM_ARM9:r).TWL.LTD.sbin$(COMPSUFFIX9)"
|
||||||
|
OverlayDefs "$(MAKEROM_ARM9:r)_defs.TWL.LTD.sbin$(COMPSUFFIX9)"
|
||||||
|
OverlayTable "$(MAKEROM_ARM9:r)_table.TWL.LTD.sbin$(COMPSUFFIX9)"
|
||||||
|
}
|
||||||
|
|
||||||
|
Arm7.Ltd
|
||||||
|
{
|
||||||
|
Static "$(MAKEROM_ARM7_BASE:r).TWL.LTD.sbin$(COMPSUFFIX7)"
|
||||||
|
OverlayDefs "$(MAKEROM_ARM7_BASE:r)_defs.TWL.LTD.sbin$(COMPSUFFIX7)"
|
||||||
|
OverlayTable "$(MAKEROM_ARM7_BASE:r)_table.TWL.LTD.sbin$(COMPSUFFIX7)"
|
||||||
|
}
|
||||||
|
|
||||||
|
Property
|
||||||
|
{
|
||||||
|
###
|
||||||
|
### Settings for FinalROM
|
||||||
|
###
|
||||||
|
#### BEGIN
|
||||||
|
#
|
||||||
|
# TITLE NAME: Your product name within 12bytes
|
||||||
|
#
|
||||||
|
TitleName "CardRH Check"
|
||||||
|
|
||||||
|
#
|
||||||
|
# MAKER CODE: Your company ID# in 2 ascii words
|
||||||
|
# issued by NINTENDO
|
||||||
|
#
|
||||||
|
#MakerCode "00"
|
||||||
|
|
||||||
|
#
|
||||||
|
# REMASTER VERSION: Mastering version
|
||||||
|
#
|
||||||
|
#RomVersion 0
|
||||||
|
|
||||||
|
#
|
||||||
|
# ROM SPEED TYPE: [MROM/1TROM/UNDEFINED]
|
||||||
|
#
|
||||||
|
RomSpeedType $(MAKEROM_ROMSPEED)
|
||||||
|
|
||||||
|
#
|
||||||
|
# ROM SIZE: in bit [64M/128M/256M/512M/1G/2G/4G]
|
||||||
|
#
|
||||||
|
#RomSize 256M
|
||||||
|
|
||||||
|
#
|
||||||
|
# ROM PADDING: TRUE if finalrom
|
||||||
|
#
|
||||||
|
#RomFootPadding TRUE
|
||||||
|
|
||||||
|
#
|
||||||
|
# ROM HEADER TEMPLATE: Provided to every product by NINTENDO
|
||||||
|
#
|
||||||
|
RomHeaderTemplate ../common/0CYA/rom_header_0cya.template.sbin
|
||||||
|
|
||||||
|
#
|
||||||
|
# BANNER FILE: generated from Banner Spec File
|
||||||
|
#
|
||||||
|
BannerFile ../common/banner2/banner.bnr
|
||||||
|
|
||||||
|
#
|
||||||
|
# Permit LandingNormalJump: for TWL "ApplicationJump" function [TRUE/FALSE]
|
||||||
|
#
|
||||||
|
PermitLandingNormalJump TRUE
|
||||||
|
|
||||||
|
#
|
||||||
|
# Permit LandingTmpJump: for TWL "ApplicationJump" function [TRUE/FALSE]
|
||||||
|
#
|
||||||
|
PermitLandingTmpJump TRUE
|
||||||
|
|
||||||
|
###
|
||||||
|
### Setting for TWL
|
||||||
|
###
|
||||||
|
|
||||||
|
#
|
||||||
|
# ROM HEADER Ltd: Provided to every product by NINTENDO
|
||||||
|
#
|
||||||
|
RomHeaderLtd $(TWLSDK_ROOT)/tools/bin/rom_header.LTD.sbin
|
||||||
|
|
||||||
|
#
|
||||||
|
# Digest parameters:
|
||||||
|
#
|
||||||
|
DigestParam 1024 32
|
||||||
|
|
||||||
|
#
|
||||||
|
# WRAM mapping: [MAP_BB_HYB/MAP_BB_LTD/MAP_TS_HYB/MAP_TS_LTD
|
||||||
|
# MAP2_BB_HYB/MAP2_BB_LTD/MAP2_TS_HYB/MAP2_TS_LTD]
|
||||||
|
# don't have to edit
|
||||||
|
#
|
||||||
|
WramMapping $(MAKEROM_WRAM_MAPPING)
|
||||||
|
|
||||||
|
#
|
||||||
|
# CardRegion: card region [Japan/America/Europe/Australia/China/Korea]
|
||||||
|
#
|
||||||
|
CardRegion ALL
|
||||||
|
|
||||||
|
#
|
||||||
|
# Codec mode:
|
||||||
|
# don't have to edit
|
||||||
|
#
|
||||||
|
CodecMode $(MAKEROM_CODEC_MODE)
|
||||||
|
|
||||||
|
#
|
||||||
|
# Disp WiFiConnection Icon for Launcher [TRUE/FALSE]
|
||||||
|
#
|
||||||
|
#WiFiConnectionIcon FALSE
|
||||||
|
|
||||||
|
#
|
||||||
|
# Disp DSWireless Icon for Launcher [TRUE/FALSE]
|
||||||
|
#
|
||||||
|
#DSWirelessIcon FALSE
|
||||||
|
|
||||||
|
#
|
||||||
|
# Agree EULA [TRUE/FALSE]
|
||||||
|
#
|
||||||
|
#AgreeEULA FALSE
|
||||||
|
|
||||||
|
#
|
||||||
|
# Agree EULA version [1 - 255]
|
||||||
|
#
|
||||||
|
#AgreeEULAVersion 1
|
||||||
|
|
||||||
|
###
|
||||||
|
#### END
|
||||||
|
}
|
||||||
|
|
||||||
|
AppendProperty
|
||||||
|
{
|
||||||
|
#
|
||||||
|
# Boot allowed Media: [GameCard]
|
||||||
|
#
|
||||||
|
Media NAND
|
||||||
|
|
||||||
|
#
|
||||||
|
# GameCode for TitleID : Your GameCode in 4 ascii words
|
||||||
|
#
|
||||||
|
#GameCode ABCJ
|
||||||
|
|
||||||
|
#
|
||||||
|
# Public save data size: [0K/16K/32K/64K/128K/256K/512K/1M/2M/4M]
|
||||||
|
#
|
||||||
|
#PublicSaveDataSize 0K
|
||||||
|
|
||||||
|
#
|
||||||
|
# Private save data size: [0K/16K/32K/64K/128K/256K/512K/1M/2M/4M]
|
||||||
|
#
|
||||||
|
#PrivateSaveDataSize 0K
|
||||||
|
|
||||||
|
#
|
||||||
|
# Enable SubBannerFile
|
||||||
|
#SubBannerFile TRUE
|
||||||
|
|
||||||
|
#
|
||||||
|
# Game card power on: [TRUE/FALSE]
|
||||||
|
#
|
||||||
|
#GameCardOn FALSE
|
||||||
|
|
||||||
|
#
|
||||||
|
# Game card transferd to nitro mode: [TRUE/FALSE]
|
||||||
|
#
|
||||||
|
#GameCardNitroMode FALSE
|
||||||
|
}
|
||||||
|
|
||||||
|
RomSpec
|
||||||
|
{
|
||||||
|
Offset 0x00000000
|
||||||
|
Segment ALL
|
||||||
|
HostRoot $(MAKEROM_ROMROOT)
|
||||||
|
Root /
|
||||||
|
File $(MAKEROM_ROMFILES)
|
||||||
|
}
|
||||||
|
|
||||||
|
Rating
|
||||||
|
{
|
||||||
|
#
|
||||||
|
# Permited age to play for each rating organization
|
||||||
|
#
|
||||||
|
# Supported organization
|
||||||
|
# - CERO (OGN0) : for Japan
|
||||||
|
# - ESRB (OGN1) : for North America
|
||||||
|
# - BBFC (OGN2) : obsolete organization
|
||||||
|
# - USK (OGN3) : for German
|
||||||
|
# - PEGI_GEN (OGN4) : for Europe
|
||||||
|
# - PEGI_FINLAND (OGN5) : obsolete organization
|
||||||
|
# - PEGI_PRT (OGN6) : for Portugal
|
||||||
|
# - PEGI_BBFC (OGN7) : for UK
|
||||||
|
# - OFLC (OGN8) : for Australia and NewZealand
|
||||||
|
# - GRB (OGN9) : for Korea
|
||||||
|
# - OGN10 : reserved
|
||||||
|
# - OGN11 : reserved
|
||||||
|
# - OGN12 : reserved
|
||||||
|
# - OGN13 : reserved
|
||||||
|
# - OGN14 : reserved
|
||||||
|
# - OGN15 : reserved
|
||||||
|
#
|
||||||
|
# Available age [ 0 - 31 / PENDING / FREE ]
|
||||||
|
|
||||||
|
CERO FREE
|
||||||
|
# ESRB FREE
|
||||||
|
# USK FREE
|
||||||
|
# PEGI_GEN FREE
|
||||||
|
# PEGI_PRT FREE
|
||||||
|
# PEGI_BBFC FREE
|
||||||
|
# OFLC FREE
|
||||||
|
# GRB FREE
|
||||||
|
}
|
||||||
29
build/debugsoft/CardRomHeaderChecker/TmpJump/Makefile
Normal file
29
build/debugsoft/CardRomHeaderChecker/TmpJump/Makefile
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
#! make -f
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
# Project: TwlSDK - tests - appjumpTest - Card
|
||||||
|
# File: Makefile
|
||||||
|
#
|
||||||
|
# Copyright 2008 Nintendo. All rights reserved.
|
||||||
|
#
|
||||||
|
# These coded instructions, statements, and computer programs contain
|
||||||
|
# proprietary information of Nintendo of America Inc. and/or Nintendo
|
||||||
|
# Company Ltd., and are protected by Federal copyright law. They may
|
||||||
|
# not be disclosed to third parties or copied or duplicated in any form,
|
||||||
|
# in whole or in part, without the prior written consent of Nintendo.
|
||||||
|
#
|
||||||
|
# $Date:: $
|
||||||
|
# $Rev$
|
||||||
|
# $Author$
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
SUBMAKES = ./Makefile.HYB ./Makefile.LTD
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
include $(TWLSDK_ROOT)/build/buildtools/commondefs
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
include $(TWLSDK_ROOT)/build/buildtools/modulerules
|
||||||
|
|
||||||
|
#===== End of Makefile =====
|
||||||
71
build/debugsoft/CardRomHeaderChecker/TmpJump/Makefile.HYB
Normal file
71
build/debugsoft/CardRomHeaderChecker/TmpJump/Makefile.HYB
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
#! make -f
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
# Project: TwlSDK - demos.TWL - nandApp - ExecTmpApp
|
||||||
|
# File: Makefile
|
||||||
|
#
|
||||||
|
# Copyright 2007-2008 Nintendo. All rights reserved.
|
||||||
|
#
|
||||||
|
# These coded instructions, statements, and computer programs contain
|
||||||
|
# proprietary information of Nintendo of America Inc. and/or Nintendo
|
||||||
|
# Company Ltd., and are protected by Federal copyright law. They may
|
||||||
|
# not be disclosed to third parties or copied or duplicated in any form,
|
||||||
|
# in whole or in part, without the prior written consent of Nintendo.
|
||||||
|
#
|
||||||
|
# $Date:: $
|
||||||
|
# $Rev$
|
||||||
|
# $Author$
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
MISC_DIR = $(ROOT)/build/demos.TWL/nandApp/launcher_param/misc
|
||||||
|
DATA_DIR = $(ROOT)/build/demos.TWL/nandApp/launcher_param/data
|
||||||
|
|
||||||
|
SUBDIRS = banner
|
||||||
|
|
||||||
|
#-------------------------
|
||||||
|
#-- NAND アプリのビルドを指定します。
|
||||||
|
|
||||||
|
TWL_NANDAPP = TRUE
|
||||||
|
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
TARGET_PLATFORM = TWL
|
||||||
|
override TWL_ARCHGEN = HYBRID
|
||||||
|
|
||||||
|
LINCLUDES = $(MISC_DIR) \
|
||||||
|
$(DATA_DIR)
|
||||||
|
|
||||||
|
SRCS = main.c ExecTmpApp.c \
|
||||||
|
$(MISC_DIR)/misc_simple.c \
|
||||||
|
$(DATA_DIR)/data.c
|
||||||
|
|
||||||
|
TARGET_BIN = ExecTmpCardRomHeaderChecker.tad
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------
|
||||||
|
#-- NAND アプリではいくつかのパラメータの指定のために固有の RSF ファイルが必要です。
|
||||||
|
|
||||||
|
ROM_SPEC = demo.autogen.hyb.rsf
|
||||||
|
ROM_SPEC_TEMPLATE = $(ROOT)/include/twl/specfiles/ROM-TS_nand.rsf
|
||||||
|
ROM_SPEC_PARAM = MakerCode=01 \
|
||||||
|
InitialCode=0CXA \
|
||||||
|
BannerFile="banner/banner.bnr" \
|
||||||
|
RomHeaderTemplate="../common/0CXA/rom_header_0cxa.template.sbin"
|
||||||
|
|
||||||
|
MAKEROM_ROMROOT = ./../Nand/bin/$(TWL_BUILDTYPE_ARM9)
|
||||||
|
MAKEROM_ROMFILES = CardRomHeaderChecker.nand.srl
|
||||||
|
|
||||||
|
include $(TWLSDK_ROOT)/build/buildtools/commondefs
|
||||||
|
include $(TWLSDK_ROOT)/build/buildtools/commondefs.gx.demolib
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
do-build : $(TARGETS)
|
||||||
|
|
||||||
|
LIBSYSCALL = ../common/0CXA/libsyscall.a
|
||||||
|
|
||||||
|
include $(TWLSDK_ROOT)/build/buildtools/modulerules
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#===== End of Makefile =====
|
||||||
72
build/debugsoft/CardRomHeaderChecker/TmpJump/Makefile.LTD
Normal file
72
build/debugsoft/CardRomHeaderChecker/TmpJump/Makefile.LTD
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
#! make -f
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
# Project: TwlSDK - demos.TWL - nandApp - ExecTmpApp
|
||||||
|
# File: Makefile
|
||||||
|
#
|
||||||
|
# Copyright 2007-2008 Nintendo. All rights reserved.
|
||||||
|
#
|
||||||
|
# These coded instructions, statements, and computer programs contain
|
||||||
|
# proprietary information of Nintendo of America Inc. and/or Nintendo
|
||||||
|
# Company Ltd., and are protected by Federal copyright law. They may
|
||||||
|
# not be disclosed to third parties or copied or duplicated in any form,
|
||||||
|
# in whole or in part, without the prior written consent of Nintendo.
|
||||||
|
#
|
||||||
|
# $Date:: $
|
||||||
|
# $Rev$
|
||||||
|
# $Author$
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
MISC_DIR = $(ROOT)/build/demos.TWL/nandApp/launcher_param/misc
|
||||||
|
DATA_DIR = $(ROOT)/build/demos.TWL/nandApp/launcher_param/data
|
||||||
|
|
||||||
|
SUBDIRS = banner2
|
||||||
|
|
||||||
|
#-------------------------
|
||||||
|
#-- NAND アプリのビルドを指定します。
|
||||||
|
|
||||||
|
TWL_NANDAPP = TRUE
|
||||||
|
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
TARGET_PLATFORM = TWL
|
||||||
|
override TWL_ARCHGEN = LIMITED
|
||||||
|
|
||||||
|
LINCLUDES = $(MISC_DIR) \
|
||||||
|
$(DATA_DIR)
|
||||||
|
|
||||||
|
SRCS = main.c ExecTmpApp.c \
|
||||||
|
$(MISC_DIR)/misc_simple.c \
|
||||||
|
$(DATA_DIR)/data.c
|
||||||
|
|
||||||
|
TARGET_BIN = ExecTmpCardRomHeaderChecker.tad
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------
|
||||||
|
#-- NAND アプリではいくつかのパラメータの指定のために固有の RSF ファイルが必要です。
|
||||||
|
|
||||||
|
ROM_SPEC = demo.autogen.ltd.rsf
|
||||||
|
ROM_SPEC_TEMPLATE = $(ROOT)/include/twl/specfiles/ROM-TS_nand.rsf
|
||||||
|
ROM_SPEC_PARAM = MakerCode=01 \
|
||||||
|
InitialCode=0CWA \
|
||||||
|
BannerFile="banner2/banner.bnr" \
|
||||||
|
RomHeaderTemplate="../common/0CWA/rom_header_0cwa.template.sbin"
|
||||||
|
|
||||||
|
MAKEROM_ROMROOT = ./../Nand/bin/$(TWL_BUILDTYPE_ARM9)
|
||||||
|
MAKEROM_ROMFILES = CardRomHeaderChecker.nand.srl
|
||||||
|
|
||||||
|
include $(TWLSDK_ROOT)/build/buildtools/commondefs
|
||||||
|
include $(TWLSDK_ROOT)/build/buildtools/commondefs.gx.demolib
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
do-build : $(TARGETS)
|
||||||
|
|
||||||
|
|
||||||
|
LIBSYSCALL = ../common/0CWA/libsyscall.a
|
||||||
|
|
||||||
|
include $(TWLSDK_ROOT)/build/buildtools/modulerules
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#===== End of Makefile =====
|
||||||
49
build/debugsoft/CardRomHeaderChecker/TmpJump/banner/Makefile
Normal file
49
build/debugsoft/CardRomHeaderChecker/TmpJump/banner/Makefile
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
#! make -f
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
# Project: TwlSDK - nandApp - demos - launcher_param - ExecTmpApp
|
||||||
|
# File: Makefile
|
||||||
|
#
|
||||||
|
# Copyright 2007-2008 Nintendo. All rights reserved.
|
||||||
|
#
|
||||||
|
# These coded instructions, statements, and computer programs contain
|
||||||
|
# proprietary information of Nintendo of America Inc. and/or Nintendo
|
||||||
|
# Company Ltd., and are protected by Federal copyright law. They may
|
||||||
|
# not be disclosed to third parties or copied or duplicated in any form,
|
||||||
|
# in whole or in part, without the prior written consent of Nintendo.
|
||||||
|
#
|
||||||
|
# $Date:: $
|
||||||
|
# $Rev$
|
||||||
|
# $Author$
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
TARGET_PLATFORM = TWL
|
||||||
|
|
||||||
|
include $(TWLSDK_ROOT)/build/buildtools/commondefs
|
||||||
|
MAKEBANNER = $(TWL_TOOLSDIR)/bin/makebanner.TWL.exe
|
||||||
|
|
||||||
|
ICON_DIR = ./icon
|
||||||
|
|
||||||
|
BANNER_ICON = $(ICON_DIR)/gameIcon.bmp
|
||||||
|
BANNER_SPEC = banner_v3.bsf
|
||||||
|
|
||||||
|
TARGETS = banner.bnr
|
||||||
|
INSTALL_DIR = ./
|
||||||
|
INSTALL_TARGETS = $(TARGETS)
|
||||||
|
|
||||||
|
BANNER_ICON_NAME = $(basename $(BANNER_ICON))
|
||||||
|
BANNER_ICON_MIDDLE = $(addprefix $(BANNER_ICON_NAME), .nbfs .nbfc .nbfp)
|
||||||
|
|
||||||
|
LDIRT_CLEAN = $(TARGETS) \
|
||||||
|
$(BANNER_ICON_MIDDLE) \
|
||||||
|
$(TARGETS:.bnr=.srl)
|
||||||
|
|
||||||
|
include $(TWLSDK_ROOT)/build/buildtools/modulerules
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
# build
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
do-build: $(TARGETS)
|
||||||
|
|
||||||
|
$(TARGETS): $(BANNER_SPEC) $(BANNER_ICON) $(BANNER_ICON_MIDDLE)
|
||||||
|
$(MAKEBANNER) -N $(BANNER_ICON_NAME) $(BANNER_SPEC) $(TARGETS)
|
||||||
|
|
||||||
|
#
|
||||||
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 630 B |
@ -0,0 +1,49 @@
|
|||||||
|
#! make -f
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
# Project: TwlSDK - nandApp - demos - launcher_param - ExecTmpApp
|
||||||
|
# File: Makefile
|
||||||
|
#
|
||||||
|
# Copyright 2007-2008 Nintendo. All rights reserved.
|
||||||
|
#
|
||||||
|
# These coded instructions, statements, and computer programs contain
|
||||||
|
# proprietary information of Nintendo of America Inc. and/or Nintendo
|
||||||
|
# Company Ltd., and are protected by Federal copyright law. They may
|
||||||
|
# not be disclosed to third parties or copied or duplicated in any form,
|
||||||
|
# in whole or in part, without the prior written consent of Nintendo.
|
||||||
|
#
|
||||||
|
# $Date:: $
|
||||||
|
# $Rev$
|
||||||
|
# $Author$
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
TARGET_PLATFORM = TWL
|
||||||
|
|
||||||
|
include $(TWLSDK_ROOT)/build/buildtools/commondefs
|
||||||
|
MAKEBANNER = $(TWL_TOOLSDIR)/bin/makebanner.TWL.exe
|
||||||
|
|
||||||
|
ICON_DIR = ./icon
|
||||||
|
|
||||||
|
BANNER_ICON = $(ICON_DIR)/gameIcon.bmp
|
||||||
|
BANNER_SPEC = banner_v3.bsf
|
||||||
|
|
||||||
|
TARGETS = banner.bnr
|
||||||
|
INSTALL_DIR = ./
|
||||||
|
INSTALL_TARGETS = $(TARGETS)
|
||||||
|
|
||||||
|
BANNER_ICON_NAME = $(basename $(BANNER_ICON))
|
||||||
|
BANNER_ICON_MIDDLE = $(addprefix $(BANNER_ICON_NAME), .nbfs .nbfc .nbfp)
|
||||||
|
|
||||||
|
LDIRT_CLEAN = $(TARGETS) \
|
||||||
|
$(BANNER_ICON_MIDDLE) \
|
||||||
|
$(TARGETS:.bnr=.srl)
|
||||||
|
|
||||||
|
include $(TWLSDK_ROOT)/build/buildtools/modulerules
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
# build
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
do-build: $(TARGETS)
|
||||||
|
|
||||||
|
$(TARGETS): $(BANNER_SPEC) $(BANNER_ICON) $(BANNER_ICON_MIDDLE)
|
||||||
|
$(MAKEBANNER) -N $(BANNER_ICON_NAME) $(BANNER_SPEC) $(TARGETS)
|
||||||
|
|
||||||
|
#
|
||||||
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 630 B |
169
build/debugsoft/CardRomHeaderChecker/TmpJump/src/ExecTmpApp.c
Normal file
169
build/debugsoft/CardRomHeaderChecker/TmpJump/src/ExecTmpApp.c
Normal file
@ -0,0 +1,169 @@
|
|||||||
|
/*---------------------------------------------------------------------------*
|
||||||
|
Project: TwlSDK - nandApp - demos - launcher_param - ExecTmpApp
|
||||||
|
File: ExecTmpApp.c
|
||||||
|
|
||||||
|
Copyright 2007-2008 Nintendo. All rights reserved.
|
||||||
|
|
||||||
|
These coded instructions, statements, and computer programs contain
|
||||||
|
proprietary information of Nintendo of America Inc. and/or Nintendo
|
||||||
|
Company Ltd., and are protected by Federal copyright law. They may
|
||||||
|
not be disclosed to third parties or copied or duplicated in any form,
|
||||||
|
in whole or in part, without the prior written consent of Nintendo.
|
||||||
|
|
||||||
|
$Date:: $
|
||||||
|
$Rev$
|
||||||
|
$Author$
|
||||||
|
*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
#include <twl.h>
|
||||||
|
#include "misc_simple.h"
|
||||||
|
#include "ExecTmpApp.h"
|
||||||
|
|
||||||
|
// define data------------------------------------------
|
||||||
|
|
||||||
|
#define COPB_MENU_ELEMENT_NUM 2 // メニューの項目数
|
||||||
|
|
||||||
|
// extern data------------------------------------------
|
||||||
|
|
||||||
|
// function's prototype declaration---------------------
|
||||||
|
|
||||||
|
static void MenuScene( void );
|
||||||
|
|
||||||
|
// global variable -------------------------------------
|
||||||
|
|
||||||
|
// static variable -------------------------------------
|
||||||
|
static u16 s_csr = 0;
|
||||||
|
static void(*s_pNowProcess)(void);
|
||||||
|
|
||||||
|
// const data -----------------------------------------
|
||||||
|
static const char *s_pStrMenu[ COPB_MENU_ELEMENT_NUM ] =
|
||||||
|
{
|
||||||
|
"save app to tmp and restart",
|
||||||
|
"return to launcher",
|
||||||
|
};
|
||||||
|
|
||||||
|
static MenuPos s_menuPos[] = {
|
||||||
|
{ TRUE, 3, 6 },
|
||||||
|
{ TRUE, 3, 8 },
|
||||||
|
};
|
||||||
|
|
||||||
|
static const MenuParam s_menuParam = {
|
||||||
|
COPB_MENU_ELEMENT_NUM,
|
||||||
|
TXT_COLOR_BLACK,
|
||||||
|
TXT_COLOR_GREEN,
|
||||||
|
TXT_COLOR_RED,
|
||||||
|
&s_menuPos[ 0 ],
|
||||||
|
(const char **)&s_pStrMenu,
|
||||||
|
};
|
||||||
|
|
||||||
|
//======================================================
|
||||||
|
// アプリ連携テストプログラムB
|
||||||
|
//======================================================
|
||||||
|
|
||||||
|
static void DrawMenuScene( void )
|
||||||
|
{
|
||||||
|
myDp_Printf( 1, 0, TXT_COLOR_BLUE, MAIN_SCREEN, "ExecTmpCardRomHeaderChecker");
|
||||||
|
// メニュー項目
|
||||||
|
myDp_DrawMenu( s_csr, MAIN_SCREEN, &s_menuParam );
|
||||||
|
}
|
||||||
|
|
||||||
|
static void MenuInit( void )
|
||||||
|
{
|
||||||
|
FS_Init(3);
|
||||||
|
GX_DispOff();
|
||||||
|
GXS_DispOff();
|
||||||
|
|
||||||
|
myDp_Printf( 1, 0, TXT_COLOR_BLUE, MAIN_SCREEN, "ExecTmpCardRomHeaderChecker");
|
||||||
|
|
||||||
|
s_pNowProcess = MenuScene;
|
||||||
|
|
||||||
|
DrawMenuScene();
|
||||||
|
|
||||||
|
GX_DispOn();
|
||||||
|
GXS_DispOn();
|
||||||
|
}
|
||||||
|
|
||||||
|
static void MenuScene(void)
|
||||||
|
{
|
||||||
|
//--------------------------------------
|
||||||
|
// キー入力処理
|
||||||
|
//--------------------------------------
|
||||||
|
if( MYPAD_IS_TRIG(PAD_KEY_DOWN) ){ // カーソルの移動
|
||||||
|
if( ++s_csr == COPB_MENU_ELEMENT_NUM ) {
|
||||||
|
s_csr=0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if( MYPAD_IS_TRIG(PAD_KEY_UP) ){
|
||||||
|
if( --s_csr & 0x80 ) {
|
||||||
|
s_csr=COPB_MENU_ELEMENT_NUM - 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
DrawMenuScene();
|
||||||
|
|
||||||
|
if( MYPAD_IS_TRIG(PAD_BUTTON_A) ) { // メニュー項目への分岐
|
||||||
|
if( s_menuPos[ s_csr ].enable ) {
|
||||||
|
u64 targetApp = 0x00030004534d504c;// SMPL
|
||||||
|
s32 len = 0;
|
||||||
|
s32 llen;
|
||||||
|
BOOL success = TRUE;
|
||||||
|
FSFile src,dest;
|
||||||
|
void *buf;
|
||||||
|
switch( s_csr ) {
|
||||||
|
case 0:
|
||||||
|
|
||||||
|
// tmpに保存
|
||||||
|
FS_DeleteFile(OS_TMP_APP_PATH);
|
||||||
|
FS_CreateFile(OS_TMP_APP_PATH, FS_PERMIT_R | FS_PERMIT_W);
|
||||||
|
FS_InitFile( &src );
|
||||||
|
FS_InitFile( &dest );
|
||||||
|
if ( !FS_OpenFileEx( &src, "rom:/CardRomHeaderChecker.nand.srl", FS_FILEMODE_R ) ) success = FALSE;
|
||||||
|
len = (int)FS_GetFileLength( &src );
|
||||||
|
|
||||||
|
buf = (void *)0x2400000;
|
||||||
|
for(llen = 0; llen < len; )
|
||||||
|
{
|
||||||
|
int rd;
|
||||||
|
rd = FS_ReadFile( &src, buf, len );
|
||||||
|
if(rd == -1)
|
||||||
|
{
|
||||||
|
success = FALSE;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
buf = (void *)((u32)buf + rd);
|
||||||
|
llen += rd;
|
||||||
|
}
|
||||||
|
buf = (void *)0x2400000;
|
||||||
|
if ( !FS_CloseFile( &src ) ) success = FALSE;
|
||||||
|
if (len != llen) success = FALSE;
|
||||||
|
|
||||||
|
if ( !FS_OpenFileEx( &dest, OS_TMP_APP_PATH, FS_FILEMODE_W ) ) success = FALSE;
|
||||||
|
llen = FS_WriteFile( &dest, buf, len );
|
||||||
|
if ( !FS_CloseFile( &dest ) ) success = FALSE;
|
||||||
|
if (len != llen) success = FALSE;
|
||||||
|
|
||||||
|
if( !success ) break;
|
||||||
|
|
||||||
|
//アプリ起動
|
||||||
|
OS_DoApplicationJump( targetApp, OS_APP_JUMP_TMP );
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
OS_DoApplicationJump( NULL, OS_APP_JUMP_NORMAL );
|
||||||
|
//再起動
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 初期化
|
||||||
|
void ExecTmpAppInit( void )
|
||||||
|
{
|
||||||
|
MenuInit();
|
||||||
|
}
|
||||||
|
|
||||||
|
// メインループ
|
||||||
|
void ExecTmpAppMain(void)
|
||||||
|
{
|
||||||
|
s_pNowProcess();
|
||||||
|
}
|
||||||
@ -0,0 +1,37 @@
|
|||||||
|
/*---------------------------------------------------------------------------*
|
||||||
|
Project: TwlSDK - nandApp - demos - launcher_param - ExecTmpApp
|
||||||
|
File: ExecTmpApp.h
|
||||||
|
|
||||||
|
Copyright 2007-2008 Nintendo. All rights reserved.
|
||||||
|
|
||||||
|
These coded instructions, statements, and computer programs contain
|
||||||
|
proprietary information of Nintendo of America Inc. and/or Nintendo
|
||||||
|
Company Ltd., and are protected by Federal copyright law. They may
|
||||||
|
not be disclosed to third parties or copied or duplicated in any form,
|
||||||
|
in whole or in part, without the prior written consent of Nintendo.
|
||||||
|
|
||||||
|
$Date:: $
|
||||||
|
$Rev$
|
||||||
|
$Author$
|
||||||
|
*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
#ifndef __COOPERATION_B_H__
|
||||||
|
#define __COOPERATION_B_H__
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#include <twl.h>
|
||||||
|
|
||||||
|
// define data----------------------------------------------------------
|
||||||
|
|
||||||
|
void ExecTmpAppInit( void );
|
||||||
|
void ExecTmpAppMain( void );
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif // __COOPERATION_B_H__
|
||||||
68
build/debugsoft/CardRomHeaderChecker/TmpJump/src/main.c
Normal file
68
build/debugsoft/CardRomHeaderChecker/TmpJump/src/main.c
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
/*---------------------------------------------------------------------------*
|
||||||
|
Project: TwlSDK - nandApp - demos - launcher_param - ExecTmpApp
|
||||||
|
File: main.c
|
||||||
|
|
||||||
|
Copyright 2007-2008 Nintendo. All rights reserved.
|
||||||
|
|
||||||
|
These coded instructions, statements, and computer programs contain
|
||||||
|
proprietary information of Nintendo of America Inc. and/or Nintendo
|
||||||
|
Company Ltd., and are protected by Federal copyright law. They may
|
||||||
|
not be disclosed to third parties or copied or duplicated in any form,
|
||||||
|
in whole or in part, without the prior written consent of Nintendo.
|
||||||
|
|
||||||
|
$Date:: $
|
||||||
|
$Rev$
|
||||||
|
$Author$
|
||||||
|
*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
#include <twl.h>
|
||||||
|
#include "misc_simple.h"
|
||||||
|
#include "ExecTmpApp.h"
|
||||||
|
|
||||||
|
// extern data-----------------------------------------------------------------
|
||||||
|
|
||||||
|
// define data-----------------------------------------------------------------
|
||||||
|
|
||||||
|
// function's prototype-------------------------------------------------------
|
||||||
|
static void INTR_VBlank( void );
|
||||||
|
|
||||||
|
// global variable-------------------------------------------------------------
|
||||||
|
|
||||||
|
// static variable-------------------------------------------------------------
|
||||||
|
BOOL g_isValidTSD;
|
||||||
|
|
||||||
|
// const data------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// ============================================================================
|
||||||
|
// function's description
|
||||||
|
// ============================================================================
|
||||||
|
void TwlMain(void)
|
||||||
|
{
|
||||||
|
myInit();
|
||||||
|
|
||||||
|
ExecTmpAppInit();
|
||||||
|
// メインループ----------------------------
|
||||||
|
while(1){
|
||||||
|
|
||||||
|
myPreMain();
|
||||||
|
|
||||||
|
ExecTmpAppMain();
|
||||||
|
|
||||||
|
myProMain();
|
||||||
|
|
||||||
|
OS_WaitIrq(1, OS_IE_V_BLANK); // Vブランク割り込み待ち
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// ============================================================================
|
||||||
|
// 割り込み処理
|
||||||
|
// ============================================================================
|
||||||
|
|
||||||
|
// Vブランク割り込み
|
||||||
|
static void INTR_VBlank(void)
|
||||||
|
{
|
||||||
|
OS_SetIrqCheckFlag(OS_IE_V_BLANK); // Vブランク割込チェックのセット
|
||||||
|
}
|
||||||
|
|
||||||
BIN
build/debugsoft/CardRomHeaderChecker/common/0CWA/libsyscall.a
Normal file
BIN
build/debugsoft/CardRomHeaderChecker/common/0CWA/libsyscall.a
Normal file
Binary file not shown.
Binary file not shown.
BIN
build/debugsoft/CardRomHeaderChecker/common/0CXA/libsyscall.a
Normal file
BIN
build/debugsoft/CardRomHeaderChecker/common/0CXA/libsyscall.a
Normal file
Binary file not shown.
Binary file not shown.
BIN
build/debugsoft/CardRomHeaderChecker/common/0CYA/libsyscall.a
Normal file
BIN
build/debugsoft/CardRomHeaderChecker/common/0CYA/libsyscall.a
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
49
build/debugsoft/CardRomHeaderChecker/common/banner2/Makefile
Normal file
49
build/debugsoft/CardRomHeaderChecker/common/banner2/Makefile
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
#! make -f
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
# Project: TwlIPL
|
||||||
|
# File: Makefile
|
||||||
|
#
|
||||||
|
# Copyright 2007 Nintendo. All rights reserved.
|
||||||
|
#
|
||||||
|
# These coded instructions, statements, and computer programs contain
|
||||||
|
# proprietary information of Nintendo of America Inc. and/or Nintendo
|
||||||
|
# Company Ltd., and are protected by Federal copyright law. They may
|
||||||
|
# not be disclosed to third parties or copied or duplicated in any form,
|
||||||
|
# in whole or in part, without the prior written consent of Nintendo.
|
||||||
|
#
|
||||||
|
# $Date:: $
|
||||||
|
# $Rev$
|
||||||
|
# $Author$
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
include $(TWL_IPL_RED_ROOT)/build/buildtools/commondefs
|
||||||
|
|
||||||
|
ICON_DIR = ./icon
|
||||||
|
|
||||||
|
BANNER_ICON = $(ICON_DIR)/gameIcon.bmp
|
||||||
|
BANNER_SPEC = banner_v3.bsf
|
||||||
|
|
||||||
|
TARGETS = banner.bnr
|
||||||
|
INSTALL_DIR = ./
|
||||||
|
INSTALL_TARGETS = $(TARGETS)
|
||||||
|
|
||||||
|
BANNER_ICON_NAME = $(basename $(BANNER_ICON))
|
||||||
|
|
||||||
|
LDIRT_CLEAN = $(TARGETS) \
|
||||||
|
$(BANNER_ICON_NAME).nbfs \
|
||||||
|
$(BANNER_ICON_NAME).nbfc \
|
||||||
|
$(BANNER_ICON_NAME).nbfp \
|
||||||
|
$(TARGETS:.bnr=.srl)
|
||||||
|
|
||||||
|
include $(TWL_IPL_RED_ROOT)/build/buildtools/modulerules
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
# build
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
do-build: $(TARGETS)
|
||||||
|
|
||||||
|
$(TARGETS): $(BANNER_SPEC) $(BANNER_ICON)
|
||||||
|
$(NTEXCONV) -no -bg -bgb -bgnc $(BANNER_ICON) >/dev/null && \
|
||||||
|
$(MAKEBANNER) -N $(BANNER_ICON_NAME) $(BANNER_SPEC) $(TARGETS)
|
||||||
|
|
||||||
|
#
|
||||||
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 630 B |
@ -160,11 +160,15 @@ void TwlMain(void)
|
|||||||
|
|
||||||
DEMOSetBitmapTextColor(GX_RGBA(31, 31, 31, 1));
|
DEMOSetBitmapTextColor(GX_RGBA(31, 31, 31, 1));
|
||||||
DEMODrawText( 8, row, "End." );
|
DEMODrawText( 8, row, "End." );
|
||||||
|
row += 2 * shift;
|
||||||
|
DEMODrawText( 8, row, "Press A to check Self-Jump." );
|
||||||
|
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
|
DEMOReadKey();
|
||||||
DEMO_DrawFlip();
|
DEMO_DrawFlip();
|
||||||
OS_WaitVBlankIntr();
|
OS_WaitVBlankIntr();
|
||||||
|
if(DEMO_IS_TRIG(PAD_BUTTON_A)) OS_RebootSystem();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user