mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
TitleInfoSub, TitleProperty, TitleID_HiLo構造体をtypes.hに切り出す。
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@1769 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
8bad89ba48
commit
fe38eefbc5
@ -23,6 +23,7 @@
|
||||
#include <twl/os/common/format_rom.h>
|
||||
#include <twl/os/common/banner.h>
|
||||
#include <twl/os/common/msJump.h>
|
||||
#include <sysmenu/types.h>
|
||||
#include <sysmenu/reloc_info/common/reloc_info.h>
|
||||
#include <application_jump_private.h>
|
||||
|
||||
@ -51,22 +52,6 @@ extern "C" {
|
||||
|
||||
#define SYSM_ALIGNMENT_LOAD_MODULE 32 // モジュールをsrlから読み込む際のアライメント(AESおよびAESで使うDMAの仕様による)
|
||||
|
||||
typedef struct TitleInfoSub {
|
||||
RomExpansionFlags exFlags;
|
||||
char platform_code;
|
||||
u8 parental_control_rating_info[0x10];
|
||||
u32 card_region_bitmap;
|
||||
u8 agree_EULA_version;
|
||||
}TitleInfoSub;
|
||||
|
||||
// タイトル情報
|
||||
typedef struct TitleProperty { // この情報は、ランチャー時には認証通ってないけど、起動時には認証通すので大丈夫だろう。
|
||||
NAMTitleId titleID; // タイトルID(TitleID_Hiで起動メディアは判定できる?)
|
||||
LauncherBootFlags flags; // ブート時のランチャー動作フラグ
|
||||
TWLBannerFile *pBanner; // バナーへのポインタ(固定長フォーマットなら偽造されても大丈夫だろう。)
|
||||
TitleInfoSub sub_info;
|
||||
}TitleProperty;
|
||||
|
||||
// タイトルリスト作成用情報構造体
|
||||
typedef struct TitleListMakerInfo {
|
||||
char makerCode[MAKER_CODE_MAX];
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
|
||||
#include <twl.h>
|
||||
#include <twl/nam.h>
|
||||
|
||||
#include <sysmenu/types.h>
|
||||
#include <sysmenu/memorymap.h>
|
||||
#include <sysmenu/reloc_info/common/reloc_info.h>
|
||||
#include <firm/gcd/blowfish.h>
|
||||
@ -47,12 +47,6 @@ typedef enum CardDataReadState {
|
||||
}
|
||||
CardDataReadState;
|
||||
|
||||
// NAMTitleIDをHiLoに分割してアクセスする場合に使用
|
||||
typedef struct TitleID_HiLo {
|
||||
u8 Lo[ 4 ];
|
||||
u32 Hi;
|
||||
}TitleID_HiLo;
|
||||
|
||||
// WRAM経由でカードデータを読み込む場合に使用
|
||||
typedef struct CardReadParam {
|
||||
u32 src;
|
||||
|
||||
61
include/sysmenu/types.h
Normal file
61
include/sysmenu/types.h
Normal file
@ -0,0 +1,61 @@
|
||||
/*---------------------------------------------------------------------------*
|
||||
Project: TwlIPL
|
||||
File: types.h
|
||||
|
||||
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$
|
||||
*---------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef __SYSM_TYPES_H__
|
||||
#define __SYSM_TYPES_H__
|
||||
|
||||
#include <twl.h>
|
||||
#include <twl/os/common/format_rom.h>
|
||||
#include <../build/libraries/os/common/include/application_jump_private.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
// define data----------------------------------------------------------
|
||||
|
||||
// NAMTitleIDをHiLoに分割してアクセスする場合に使用
|
||||
typedef struct TitleID_HiLo {
|
||||
u8 Lo[ 4 ];
|
||||
u32 Hi;
|
||||
}TitleID_HiLo;
|
||||
|
||||
|
||||
// タイトル情報サブ
|
||||
typedef struct TitleInfoSub {
|
||||
RomExpansionFlags exFlags;
|
||||
char platform_code;
|
||||
u8 parental_control_rating_info[ PARENTAL_CONTROL_INFO_SIZE ];
|
||||
u32 card_region_bitmap;
|
||||
u8 agree_EULA_version;
|
||||
}TitleInfoSub;
|
||||
|
||||
|
||||
// タイトル情報
|
||||
typedef struct TitleProperty { // この情報は、ランチャー時には認証通ってないけど、起動時には認証通すので大丈夫だろう。
|
||||
NAMTitleId titleID; // タイトルID(TitleID_Hiで起動メディアは判定できる?)
|
||||
LauncherBootFlags flags; // ブート時のランチャー動作フラグ
|
||||
TWLBannerFile *pBanner; // バナーへのポインタ(固定長フォーマットなら偽造されても大丈夫だろう。)
|
||||
TitleInfoSub sub_info;
|
||||
}TitleProperty;
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // __SYSM_TYPES_H__
|
||||
@ -1,6 +1,6 @@
|
||||
/*---------------------------------------------------------------------------*
|
||||
Project: TwlIPL
|
||||
File: SYSM_lib.h
|
||||
File: util.h
|
||||
|
||||
Copyright 2007 Nintendo. All rights reserved.
|
||||
|
||||
@ -19,7 +19,6 @@
|
||||
#define __SYSM_UTIL_H__
|
||||
|
||||
#include <twl.h>
|
||||
#include <sysmenu.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user