diff --git a/tests/SimpleFontViewSD/030A/libsyscall.a b/tests/SimpleFontViewSD/030A/libsyscall.a new file mode 100644 index 0000000..3de84f7 Binary files /dev/null and b/tests/SimpleFontViewSD/030A/libsyscall.a differ diff --git a/tests/SimpleFontViewSD/030A/libsyscall_c.bin b/tests/SimpleFontViewSD/030A/libsyscall_c.bin new file mode 100644 index 0000000..ba85ee4 Binary files /dev/null and b/tests/SimpleFontViewSD/030A/libsyscall_c.bin differ diff --git a/tests/SimpleFontViewSD/030A/rom_header_030a.template.sbin b/tests/SimpleFontViewSD/030A/rom_header_030a.template.sbin new file mode 100644 index 0000000..b183360 Binary files /dev/null and b/tests/SimpleFontViewSD/030A/rom_header_030a.template.sbin differ diff --git a/tests/SimpleFontViewSD/Makefile b/tests/SimpleFontViewSD/Makefile index 2b37809..dab5f97 100644 --- a/tests/SimpleFontViewSD/Makefile +++ b/tests/SimpleFontViewSD/Makefile @@ -14,6 +14,8 @@ # $Revision$ #---------------------------------------------------------------------------- +SUBDIRS = banner + NNS_USELIBS = g2d gfd fnd G2D_TEXTDEMOLIB = $(NITROSYSTEM_ROOT)/build/demos/g2d/Text/textdemolib @@ -22,17 +24,23 @@ LINCLUDES = $(G2D_TEXTDEMOLIB)/include LLIBRARY_DIRS = $(G2D_TEXTDEMOLIB)/lib/$(NITRO_BUILDTYPE) LLIBRARIES = libg2d_textdemo.a +LIBSYSCALL = ./030A/libsyscall.a + +TWL_NANDAPP = TRUE + +TITLEID_LO = 030A + #---------------------------------------------------------------------------- SRCS = main.c -TARGET_BIN = main.srl +TARGET_BIN = SimpleFontViewSD.tad LDEPENDS_NEF = data/fontd.NFTR MAKEROM_ROMROOT = ./ MAKEROM_ROMFILES = data/fontd.NFTR -ROM_SPEC = ROM-TS_custom.rsf +ROM_SPEC = ./ROM-TS_custom.rsf #---------------------------------------------------------------------------- include $(NITROSYSTEM_ROOT)/build/buildtools/commondefs @@ -41,7 +49,7 @@ include $(NITROSYSTEM_ROOT)/build/buildtools/commondefs do-build: $(TARGETS) -include $(NITROSYSTEM_ROOT)/build/buildtools/modulerules +include $(TWLSDK_ROOT)/build/buildtools/modulerules #===== End of Makefile ===== diff --git a/tests/SimpleFontViewSD/ROM-TS_custom.rsf b/tests/SimpleFontViewSD/ROM-TS_custom.rsf index 448e1b2..6a0eb2d 100644 --- a/tests/SimpleFontViewSD/ROM-TS_custom.rsf +++ b/tests/SimpleFontViewSD/ROM-TS_custom.rsf @@ -57,13 +57,13 @@ Property # # TITLE NAME: Your product name within 12bytes # - #TitleName "MY APP NAME" + TitleName "SIFONTVIEWER" # # MAKER CODE: Your company ID# in 2 ascii words # issued by NINTENDO # - #MakerCode "00" + MakerCode "01" # # REMASTER VERSION: Mastering version @@ -88,13 +88,13 @@ Property # # ROM HEADER TEMPLATE: Provided to every product by NINTENDO # - #RomHeaderTemplate ./etc/rom_header.template.sbin + RomHeaderTemplate ./030A/rom_header_030a.template.sbin # # BANNER FILE: generated from Banner Spec File # #BannerFile ./etc/myGameBanner.bnr - BannerFile $(TWLSDK_ROOT)/include/twl/specfiles/default.bnr + BannerFile ./banner/banner.bnr # # Permit LandingNormalJump: for TWL "ApplicationJump" function [TRUE/FALSE] @@ -207,7 +207,7 @@ AppendProperty # # Publisher : "Nintendo" # don't have to edit - #Publisher Nintendo + Publisher Nintendo # # Application type : [USER/SYSTEM] @@ -222,7 +222,7 @@ AppendProperty # # Boot allowed Media: [GameCard] # - Media GameCard + Media NAND # # Data only title : [TRUE/FALSE] @@ -237,7 +237,7 @@ AppendProperty # # GameCode for TitleID : Your GameCode in 4 ascii words # - #GameCode ABCJ + GameCode "030A" # # Public save data size: [0K/16K/32K/64K/128K/256K/512K/1M/2M/4M] diff --git a/tests/SimpleFontViewSD/banner/Makefile b/tests/SimpleFontViewSD/banner/Makefile new file mode 100644 index 0000000..d377275 --- /dev/null +++ b/tests/SimpleFontViewSD/banner/Makefile @@ -0,0 +1,47 @@ +#! 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 = test-utf16_v3.TWL.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 $(TWL_IPL_RED_ROOT)/build/buildtools/modulerules + +#---------------------------------------------------------------------------- +# build +#---------------------------------------------------------------------------- +do-build: $(TARGETS) + +$(TARGETS): $(BANNER_SPEC) $(BANNER_ICON) $(BANNER_ICON_MIDDLE) + $(MAKEBANNER) -N $(BANNER_ICON_NAME) $(BANNER_SPEC) $(TARGETS) + +# diff --git a/tests/SimpleFontViewSD/banner/icon/gameIcon.bmp b/tests/SimpleFontViewSD/banner/icon/gameIcon.bmp new file mode 100644 index 0000000..b76408a Binary files /dev/null and b/tests/SimpleFontViewSD/banner/icon/gameIcon.bmp differ diff --git a/tests/SimpleFontViewSD/banner/test-utf16_v3.TWL.bsf b/tests/SimpleFontViewSD/banner/test-utf16_v3.TWL.bsf new file mode 100644 index 0000000..c6554ab Binary files /dev/null and b/tests/SimpleFontViewSD/banner/test-utf16_v3.TWL.bsf differ