TwlIPL/include/sysmenu/util_menuAppManager.h
yoshida_teruhisa 85b7759b3f 不要になったバナー関係ライブラリを削除
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@1785 b08762b0-b915-fc4b-9d8c-17b2551a87ff
2008-07-04 06:08:45 +00:00

107 lines
3.5 KiB
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*---------------------------------------------------------------------------*
Project: TwlIPL
File: util_menuAppManager.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 MENU_APP_MANAGER_H_
#define MENU_APP_MANAGER_H_
#include <twl/nam.h>
#include <twl/os/common/format_rom.h>
#include <twl/os/common/banner.h>
#include <twl/lcfg.h>
#include <../build/libraries/os/common/include/application_jump_private.h>
#include <sysmenu/types.h>
typedef struct AMNBannerCounter
{
u32 control;
u8 count;
const TWLBannerFile *banner;
}
AMNBannerCounter;
typedef struct AMNFrameAnimeData{
const u8 *image;
const u8 *pltt;
BOOL vflip;
BOOL hflip;
}
AMNFrameAnimeData;
// アプリマネージャ
void AMN_init( void *(*pAlloc)(u32), void (*pFree)(void*) );
void AMN_restart();
void AMN_restartWithReadNandTitle();
void AMN_restartWithReadNandTitleHeaderShort();
void AMN_destroy();
BOOL AMN_isNandTitleListReady();
s32 AMN_getNandTitleListLengthForLauncher();
s32 AMN_getCardTitleListLength();
s32 AMN_getRomHeaderListLength();
// 本体設定の場合、アプリマネージャ用indexは飛び飛びになったり、
// ForSetting()が返す値(個数)より大きくなるので
// getNandTitleListLengthForSetting()は用意しない。
// isIndexValidForSetting()で、本体設定用としても有効かどうかを
// 判定してもらう予定。
BOOL AMN_isIndexValidForSetting(s32 index);
s32 AMN_getIndexByTitleId(NAMTitleId titleId);
NAMTitleId AMN_getTitleIdByIndex(s32 index);
void AMN_stepBannerAnimeAll(BOOL restart);
void AMN_stepBannerAnime(s32 index, BOOL restart);
const TitleProperty* AMN_getTitleProperty(s32 index);
const ROM_Header_Short* AMN_getTitleRomHeaderShort(s32 index);
const u8* AMN_getBannerImage(s32 index);
const u8* AMN_getBannerPltt(s32 index);
BOOL AMN_getBannerHFlip(s32 index);
BOOL AMN_getBannerVFlip(s32 index);
AMNFrameAnimeData AMN_getBannerAnime(s32 index);
const u16* AMN_getBannerText(s32 index);
const u16* AMN_getBannerText2(s32 index, OSLanguage language);
BOOL AMN_isDSWirelessIcon(s32 index);
BOOL AMN_isWiFiConnectionIcon(s32 index);
BOOL AMN_isAgreeEULAFlag(s32 index);
// info size is cParentalControlRatingInfoSize
const u8* AMN_getParentalControlRatingInfo(s32 index);
BOOL AMN_checkBannerFile(TWLBannerFile* pBanner);
// 生データTitlePropertyのリスト、HeaderShortリストにアクセスできる抜け道関数
TitleProperty* AMN_getTitlePropertyList( void );
ROM_Header_Short* AMN_getRomHeaderList( void );
enum {
// アプリマネージャ用タイトルindexは、0から始まり非負です。
// 0はCARD固定です。
// 1から39がNANDになります。
cAllTitleIndexStart = 0,
cCardTitleIndexStart = cAllTitleIndexStart,
cCardTitleArrayMax = 1,
cNandTitleIndexStart = cCardTitleIndexStart + cCardTitleArrayMax,
cNandTitleArrayMax = LCFG_TWL_FREE_SOFT_BOX_COUNT_MAX,
cAllTitleArrayMax = cCardTitleArrayMax + cNandTitleArrayMax
};
#endif