/*---------------------------------------------------------------------------* Project: TwlIPL - NAMUT File: namut.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 NAM_UTILITY_H_ #define NAM_UTILITY_H_ #ifdef __cplusplus extern "C" { #endif #ifdef SDK_ARM9 typedef void* (*NAMUTAlloc)(u32 size); typedef void (*NAMUTFree)(void* ptr); /*---------------------------------------------------------------------------* Name: NAMUT_Init Description: NAMUT ライブラリの初期化を行います。 Arguments: allocFunc: メモリ確保関数へのポインタ。 freeFunc: メモリ解放関数へのポインタ。 Returns: なし。 *---------------------------------------------------------------------------*/ void NAMUT_Init(NAMUTAlloc allocFunc, NAMUTFree freeFunc); /*---------------------------------------------------------------------------* Name: NAMUT_Format Description: NANDの擬似フォーマット (システム系の必要なファイルのみを残し他を消去します) Arguments: None Returns: None *---------------------------------------------------------------------------*/ BOOL NAMUT_Format(void); /*---------------------------------------------------------------------------* Name: NAMUT_SearchInstalledSoftBoxCount Description: InstalledSoftBoxCountの数を調べて返します。 Arguments: None Returns: None *---------------------------------------------------------------------------*/ u32 NAMUT_SearchInstalledSoftBoxCount( void ); /*---------------------------------------------------------------------------* Name: NAMUT_DrawNandTree Description: NANDのツリー情報をプリント出力します Arguments: ... Returns: None. *---------------------------------------------------------------------------*/ void NAMUT_DrawNandTree(void); /*---------------------------------------------------------------------------* Name: NAMUTi_ClearSavedataPublic Description: 指定したセーブデータファイルに対して FFクリア&フォーマットを行います。 Arguments: None Returns: None *---------------------------------------------------------------------------*/ BOOL NAMUTi_ClearSavedataPublic(const char* path, u64 titleID); /*---------------------------------------------------------------------------* Name: NAMUTi_ClearSavedataPrivate Description: 指定したセーブデータファイルに対して FFクリア&フォーマットを行います。 Arguments: None Returns: None *---------------------------------------------------------------------------*/ BOOL NAMUTi_ClearSavedataPrivate(const char* path, u64 titleID); /*---------------------------------------------------------------------------* Name: NAMUTi_DestroySubBanner Description: 指定したサブバナーのCRC破壊を試みます。 指定したサブバナーが存在しない可能性もありますが その場合でもTRUEを返します。(コードはOS_DeleteSubBannerFileのパクリ) Arguments: None Returns: None *---------------------------------------------------------------------------*/ BOOL NAMUTi_DestroySubBanner(const char* path); /*---------------------------------------------------------------------------* Name: NAMUT_DeleteNandDirectory Description: 指定ディレクトリ以下を消去します。 指定ディレクトリ自体は残ります。 Arguments: path : 絶対パス(スラッシュを含めない) Returns: None *---------------------------------------------------------------------------*/ BOOL NAMUT_DeleteNandDirectory(const char *path); #endif // SDK_ARM9 #ifdef __cplusplus } /* extern "C" */ #endif #endif /* NAM_UTILITY_H_ */