mirror of
https://github.com/rvtr/ctr_Repair.git
synced 2025-10-31 13:51:08 -04:00
初回起動シーケンスをスキップするだけのツールを追加
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@432 385bec56-5757-e545-9c3a-d8741f4650f1
This commit is contained in:
parent
017b0230db
commit
f1380f7f21
BIN
trunk/SkipFirstLaunch/AutoBoot.bsf
Normal file
BIN
trunk/SkipFirstLaunch/AutoBoot.bsf
Normal file
Binary file not shown.
42
trunk/SkipFirstLaunch/OMakefile
Normal file
42
trunk/SkipFirstLaunch/OMakefile
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
#!/usr/bin/env omake
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
# Project: CalViewer
|
||||||
|
# File: OMakefile
|
||||||
|
#
|
||||||
|
# Copyright (C)2009 Nintendo Co., Ltd. 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.
|
||||||
|
#
|
||||||
|
# $Revision$
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
SUPPORTED_TARGETS = CTR-T*.Process.MPCore.fast
|
||||||
|
CTR_APPTYPE = CARD
|
||||||
|
|
||||||
|
TARGET_PROGRAM = SkipFirstLaunch
|
||||||
|
|
||||||
|
ROMFS_ROOT = romfiles
|
||||||
|
CTR_BANNER_SPEC = AutoBoot.bsf
|
||||||
|
|
||||||
|
SAMPLED_DEMOS_COMMON_INCLUDE_DIR = $(dir $(HORIZON_ROOT)/../CTR/SampleDemos/common/include)
|
||||||
|
INCLUDES += $(SAMPLED_DEMOS_COMMON_INCLUDE_DIR) \
|
||||||
|
../../common
|
||||||
|
|
||||||
|
SOURCES[] =
|
||||||
|
main.cpp
|
||||||
|
# RSF
|
||||||
|
ROM_SPEC_FILE = $(TARGET_PROGRAM).rsf
|
||||||
|
|
||||||
|
# DESC
|
||||||
|
#DESCRIPTOR = $(HORIZON_ROOT)/sources/tools/Config/Config.autogen.desc
|
||||||
|
DESCRIPTOR = $(HORIZON_ROOT)/resources/specfiles/RepairTool.desc
|
||||||
|
|
||||||
|
LIBS += lib_demo libnn_ns
|
||||||
|
|
||||||
|
|
||||||
|
include $(ROOT_OMAKE)/modulerules
|
||||||
|
|
||||||
|
build: $(DEFAULT_TARGETS)
|
||||||
BIN
trunk/SkipFirstLaunch/OMakefile.omc
Normal file
BIN
trunk/SkipFirstLaunch/OMakefile.omc
Normal file
Binary file not shown.
73
trunk/SkipFirstLaunch/OMakeroot
Normal file
73
trunk/SkipFirstLaunch/OMakeroot
Normal file
@ -0,0 +1,73 @@
|
|||||||
|
#!/usr/bin/env omake
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
# Project: Horizon
|
||||||
|
# File: OMakeroot
|
||||||
|
#
|
||||||
|
# Copyright (C)2009 Nintendo Co., Ltd. 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.
|
||||||
|
#
|
||||||
|
# $Rev:$
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# ディレクトリレイアウトについての説明
|
||||||
|
#
|
||||||
|
# a) ソースコードがルートディレクトリ直下に配置される場合
|
||||||
|
# 例:
|
||||||
|
# /OMakeroot
|
||||||
|
# /foo/bar/OMakefile
|
||||||
|
#
|
||||||
|
# 結果:
|
||||||
|
# OMakefile と同じディレクトリ以下に objects や images が生成されます。
|
||||||
|
#
|
||||||
|
# /foo/bar/objects/...
|
||||||
|
# /foo/bar/images/..
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# b) ソースコードが sources 以下に配置される場合
|
||||||
|
# 例:
|
||||||
|
# /OMakeroot
|
||||||
|
# /sources/foo/bar/OMakefile
|
||||||
|
#
|
||||||
|
# 結果:
|
||||||
|
# ルートディレクトリ以下に objects や images が生成されます。
|
||||||
|
#
|
||||||
|
# /objects/foo/bar/...
|
||||||
|
# /images/foo/bar/...
|
||||||
|
#
|
||||||
|
#
|
||||||
|
|
||||||
|
# ルート環境変数の取得
|
||||||
|
public.HORIZON_ROOT =
|
||||||
|
if $(defined-env HORIZON_ROOT)
|
||||||
|
HORIZON_ROOT = $(absname $(getenv HORIZON_ROOT))
|
||||||
|
export
|
||||||
|
|
||||||
|
if $(defined-env CTRSDK_ROOT)
|
||||||
|
CTRSDK_ROOT = $(absname $(getenv CTRSDK_ROOT))
|
||||||
|
if $(and $(defined-env HORIZON_ROOT), $(not $(equal $(HORIZON_ROOT), $(CTRSDK_ROOT))))
|
||||||
|
eprintln(HORIZON_ROOT と CTRSDK_ROOT が一致しません。同じパスを設定するか、どちらか一方だけを定義して下さい。)
|
||||||
|
exit(1)
|
||||||
|
HORIZON_ROOT = $(CTRSDK_ROOT)
|
||||||
|
export
|
||||||
|
|
||||||
|
if $(not $(HORIZON_ROOT))
|
||||||
|
eprintln($"$$CTRSDK_ROOT が定義されていません")
|
||||||
|
exit(1)
|
||||||
|
|
||||||
|
include $(HORIZON_ROOT)/build/omake/commondefs
|
||||||
|
|
||||||
|
DefineCommandVars()
|
||||||
|
|
||||||
|
.PHONY: all build clean clobber
|
||||||
|
.PHONY: run run-scripts run-emumem
|
||||||
|
|
||||||
|
#
|
||||||
|
# OMakefile の読み込み
|
||||||
|
#
|
||||||
|
.SUBDIRS: .
|
||||||
|
|
||||||
4
trunk/SkipFirstLaunch/Readme.txt
Normal file
4
trunk/SkipFirstLaunch/Readme.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
【ビルド環境】
|
||||||
|
|
||||||
|
・SDK
|
||||||
|
Horizon 2_3 branch r38025
|
||||||
28
trunk/SkipFirstLaunch/SkipFirstLaunch.rsf
Normal file
28
trunk/SkipFirstLaunch/SkipFirstLaunch.rsf
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
BasicInfo:
|
||||||
|
Title : SkipFirstLaunch
|
||||||
|
ProductCode: SkipFirstLaunch
|
||||||
|
BackupMemoryType: None
|
||||||
|
|
||||||
|
TitleInfo:
|
||||||
|
Use: Evaluation
|
||||||
|
Category: Application
|
||||||
|
UniqueId: 0xf8021
|
||||||
|
Version: 0
|
||||||
|
|
||||||
|
SystemControlInfo:
|
||||||
|
AppType : Application
|
||||||
|
StackSize : 0x4000
|
||||||
|
Dependency :
|
||||||
|
- codec
|
||||||
|
- hid
|
||||||
|
- gsp
|
||||||
|
|
||||||
|
AccessControlInfo:
|
||||||
|
Priority : 16
|
||||||
|
DisableDebug : true
|
||||||
|
|
||||||
|
Option:
|
||||||
|
FreeProductCode: true
|
||||||
|
|
||||||
|
CardInfo:
|
||||||
|
CardDevice: None
|
||||||
BIN
trunk/SkipFirstLaunch/banner/model.cbmd
Normal file
BIN
trunk/SkipFirstLaunch/banner/model.cbmd
Normal file
Binary file not shown.
BIN
trunk/SkipFirstLaunch/banner/sound.cbsd
Normal file
BIN
trunk/SkipFirstLaunch/banner/sound.cbsd
Normal file
Binary file not shown.
1
trunk/SkipFirstLaunch/banner/unknown24x24.ctpk
Normal file
1
trunk/SkipFirstLaunch/banner/unknown24x24.ctpk
Normal file
@ -0,0 +1 @@
|
|||||||
|
В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫фВ╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫ф8ф8фШчГГГГГГВ╫В╫8фВ╫В╫В╫В╫В╫ГГГГшчфГШФВ╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫фВ╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫yнВ╫yнВ╫В╫В╫В╫В╫YнВ╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫ГГГГШчyнYнВ╫шчшчВ╫В╫фВ╫В╫шчyнШчВ╫yнГГГГyнШФГГГГГшчВ╫В╫В╫В╫YнГyнГВ╫В╫В╫В╫В╫yнфшчГШФГYнyнВ╫В╫В╫yнВ╫╨жВ╫В╫В╫В╫В╫yнВ╫yнВ╫В╫В╫В╫В╫YнВ╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫yнГYнГВ╫В╫В╫В╫В╫фВ╫В╫ГyнГ8фВ╫В╫В╫В╫фВ╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫
|
||||||
1
trunk/SkipFirstLaunch/banner/unknown48x48.ctpk
Normal file
1
trunk/SkipFirstLaunch/banner/unknown48x48.ctpk
Normal file
@ -0,0 +1 @@
|
|||||||
|
В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫YнВ╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫8фВ╫В╫8ф8фВ╫В╫В╫╨ж8ф╨жГГшчГГГГГГГГГГГГГГГГГГГГГГГВ╫В╫В╫В╫В╫В╫В╫В╫В╫В╫8ф8фВ╫В╫фВ╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫ГГГГГШФГГГГГГГГГГ жфГГВ╫В╫ жВ╫ГГГГГ жГГВ╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫8фВ╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫шчВ╫шчВ╫В╫В╫В╫В╫ГВ╫ШчВ╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫╨жВ╫В╫В╫В╫В╫В╫В╫В╫В╫В╫ГГГГГГГГГГГГГГГГГГШФ8фШчшчВ╫В╫ жВ╫YнВ╫В╫В╫В╫В╫ГГYнyнГГyнфВ╫В╫В╫В╫В╫В╫В╫В╫фВ╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫шчшчГшчШФВ╫В╫ГГYнГВ╫В╫В╫В╫В╫шчВ╫шчГГГГГГГГГГГГГГГГВ╫В╫YнШч жГГГГГГГГГГГГГГГГГГГГГГГГшч╨жВ╫ жВ╫шчВ╫В╫В╫В╫В╫ШФВ╫ШФВ╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫шчВ╫yнВ╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫YнВ╫ жГГГГВ╫шчВ╫шчГГГГВ╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫8фВ╫В╫╨жшчВ╫В╫В╫В╫В╫YнфyнГГГГГГГГГ жГГГГ╨жВ╫YнВ╫ШФYнВ╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫шч жВ╫В╫В╫В╫В╫В╫yнВ╫ГШФВ╫В╫фВ╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫ШФВ╫ГГГГГВ╫ШчВ╫YнГГШФГВ╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫8фВ╫В╫В╫В╫В╫В╫В╫В╫В╫В╫ГГГГ жВ╫шчВ╫ГГГшч жВ╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫8фВ╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫В╫
|
||||||
123
trunk/SkipFirstLaunch/main.cpp
Normal file
123
trunk/SkipFirstLaunch/main.cpp
Normal file
@ -0,0 +1,123 @@
|
|||||||
|
/*---------------------------------------------------------------------------*
|
||||||
|
Project: Horizon
|
||||||
|
File: main.cpp
|
||||||
|
|
||||||
|
Copyright 2011 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.
|
||||||
|
|
||||||
|
$Rev$
|
||||||
|
*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
#include <nn.h>
|
||||||
|
#include <nn/applet.h>
|
||||||
|
#include <nn/cfg.h>
|
||||||
|
#include <nn/cfg/CTR/cfg_ApiInit.h>
|
||||||
|
#include <nn/cfg/CTR/detail/cfg_Keys.h>
|
||||||
|
#include <nn/ns.h>
|
||||||
|
|
||||||
|
#include "demo.h"
|
||||||
|
|
||||||
|
#define HANDLE_ERROR(result) \
|
||||||
|
if(result.IsFailure()) \
|
||||||
|
{ \
|
||||||
|
DrawError(result); \
|
||||||
|
} \
|
||||||
|
|
||||||
|
namespace
|
||||||
|
{
|
||||||
|
demo::RenderSystemDrawing s_RenderSystem;
|
||||||
|
}
|
||||||
|
|
||||||
|
extern "C" void nninitSetupDaemons(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void DrawError(nn::Result result)
|
||||||
|
{
|
||||||
|
s_RenderSystem.SetClearColor(NN_GX_DISPLAY_BOTH, 1, 0, 0, 1);
|
||||||
|
s_RenderSystem.SetColor(1, 1, 1);
|
||||||
|
|
||||||
|
for(;;)
|
||||||
|
{
|
||||||
|
s_RenderSystem.SetRenderTarget(NN_GX_DISPLAY0);
|
||||||
|
s_RenderSystem.Clear();
|
||||||
|
s_RenderSystem.DrawText(0, 0, "Error: %08X", result.GetPrintableBits());
|
||||||
|
|
||||||
|
s_RenderSystem.SwapBuffers();
|
||||||
|
s_RenderSystem.SetRenderTarget(NN_GX_DISPLAY1);
|
||||||
|
s_RenderSystem.Clear();
|
||||||
|
s_RenderSystem.SwapBuffers();
|
||||||
|
s_RenderSystem.WaitVsync(NN_GX_DISPLAY_BOTH);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
extern "C" void nnMain()
|
||||||
|
{
|
||||||
|
nn::Result result;
|
||||||
|
nn::applet::Enable();
|
||||||
|
nn::cfg::CTR::init::Initialize();
|
||||||
|
|
||||||
|
// RenderSystem の準備
|
||||||
|
nn::fnd::ExpHeap appHeap;
|
||||||
|
appHeap.Initialize(nn::os::GetDeviceMemoryAddress(), nn::os::GetDeviceMemorySize());
|
||||||
|
const size_t s_GxHeapSize = 8 * 1024 * 1024;
|
||||||
|
void* heapForGx = appHeap.Allocate(s_GxHeapSize);
|
||||||
|
s_RenderSystem.Initialize(reinterpret_cast<uptr>(heapForGx), s_GxHeapSize);
|
||||||
|
s_RenderSystem.SetClearColor(NN_GX_DISPLAY_BOTH, 0, 1, 0, 1);
|
||||||
|
|
||||||
|
result = nn::ns::InitializeForShell();
|
||||||
|
HANDLE_ERROR(result);
|
||||||
|
|
||||||
|
nn::cfg::detail::FirstLaunchInfoCfgData firstLaunch;
|
||||||
|
|
||||||
|
firstLaunch.mmen = 1;
|
||||||
|
firstLaunch.internet = 0;
|
||||||
|
firstLaunch.rsv = 0;
|
||||||
|
|
||||||
|
result = nn::cfg::CTR::init::SetConfig(
|
||||||
|
GET_CFG_KEY(nn::cfg::CTR::detail::NN_CFG_MENU, nn::cfg::CTR::detail::NN_CFG_MENU_FIRST_LAUNCH), &firstLaunch,
|
||||||
|
sizeof(firstLaunch));
|
||||||
|
HANDLE_ERROR(result);
|
||||||
|
result = nn::cfg::CTR::init::FlushConfig();
|
||||||
|
HANDLE_ERROR(result);
|
||||||
|
nn::cfg::CTR::init::Finalize();
|
||||||
|
|
||||||
|
|
||||||
|
for(;;)
|
||||||
|
{
|
||||||
|
// 電源ボタン短押しでシステムにシャットダウン通知を投げる
|
||||||
|
if( nn::applet::IsExpectedToProcessPowerButton())
|
||||||
|
{
|
||||||
|
result = nn::ns::ShutdownAsync();
|
||||||
|
HANDLE_ERROR(result);
|
||||||
|
}
|
||||||
|
|
||||||
|
// シャットダウンが始まったらアプリを終了させる
|
||||||
|
if ( nn::applet::IsExpectedToCloseApplication())
|
||||||
|
{
|
||||||
|
NN_LOG("Close Application\n");
|
||||||
|
result = nn::ns::FinalizeForShell();
|
||||||
|
HANDLE_ERROR(result);
|
||||||
|
s_RenderSystem.Finalize();
|
||||||
|
appHeap.Free(heapForGx);
|
||||||
|
appHeap.Finalize();
|
||||||
|
result = nn::applet::PrepareToCloseApplication();
|
||||||
|
HANDLE_ERROR(result);
|
||||||
|
result = nn::applet::CloseApplication();
|
||||||
|
HANDLE_ERROR(result);
|
||||||
|
}
|
||||||
|
|
||||||
|
s_RenderSystem.SetRenderTarget(NN_GX_DISPLAY0);
|
||||||
|
s_RenderSystem.Clear();
|
||||||
|
s_RenderSystem.SwapBuffers();
|
||||||
|
s_RenderSystem.SetRenderTarget(NN_GX_DISPLAY1);
|
||||||
|
s_RenderSystem.Clear();
|
||||||
|
s_RenderSystem.SwapBuffers();
|
||||||
|
s_RenderSystem.WaitVsync(NN_GX_DISPLAY_BOTH);
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user