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@1168 b08762b0-b915-fc4b-9d8c-17b2551a87ff
71 lines
2.4 KiB
C
71 lines
2.4 KiB
C
/*---------------------------------------------------------------------------*
|
||
Project: ImportJump
|
||
File: import.h
|
||
|
||
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$
|
||
*---------------------------------------------------------------------------*/
|
||
|
||
#ifndef IMPORT_JUMP_H_
|
||
#define IMPORT_JUMP_H_
|
||
|
||
#ifdef __cplusplus
|
||
extern "C" {
|
||
#endif
|
||
|
||
/*===========================================================================*/
|
||
|
||
#include <nitro.h>
|
||
|
||
/*---------------------------------------------------------------------------*
|
||
型定義
|
||
*---------------------------------------------------------------------------*/
|
||
|
||
typedef struct _ImportJumpSetting
|
||
{
|
||
u32 magicCode; // = TWLD
|
||
u32 clearPublicSaveData :1; // publicセーブデータをクリアする(デフォルトOFF)
|
||
u32 clearPrivateSaveData :1; // privareセーブデータをクリアする(デフォルトOFF)
|
||
u32 clearSaveBannerFile:1; // セーブバナーファイルをクリアする(デフォルトOFF)
|
||
u32 importTad:1; // パスで指定されたTADファイルをインポートするか(TADの更新有無に依存)
|
||
u32 rsv :28; // 予約
|
||
u32 tadLength; // TADファイルの長さ
|
||
} ImportJump;
|
||
|
||
/*---------------------------------------------------------------------------*
|
||
定数定義
|
||
*---------------------------------------------------------------------------*/
|
||
|
||
// TADファイル配置アドレス
|
||
#define IMPORT_TAD_ADDRESS 0x00800000
|
||
|
||
/*---------------------------------------------------------------------------*
|
||
関数定義
|
||
*---------------------------------------------------------------------------*/
|
||
|
||
inline ImportJump* GetImportJumpSetting(void)
|
||
{
|
||
return (ImportJump *)0x0dfc0000;
|
||
}
|
||
|
||
/*===========================================================================*/
|
||
|
||
#ifdef __cplusplus
|
||
} /* extern "C" */
|
||
#endif
|
||
|
||
#endif /* IMPORT_JUMP_H_ */
|
||
|
||
/*---------------------------------------------------------------------------*
|
||
End of file
|
||
*---------------------------------------------------------------------------*/
|