1 /*---------------------------------------------------------------------------*
2 Project: TwlSDK - NA - include
3 File: archive.h
4
5 Copyright 2007-2008 Nintendo. All rights reserved.
6
7 These coded instructions, statements, and computer programs contain
8 proprietary information of Nintendo of America Inc. and/or Nintendo
9 Company Ltd., and are protected by Federal copyright law. They may
10 not be disclosed to third parties or copied or duplicated in any form,
11 in whole or in part, without the prior written consent of Nintendo.
12
13 $Date:: 2008-09-17#$
14 $Rev: 8556 $
15 $Author: okubata_ryoma $
16 *---------------------------------------------------------------------------*/
17 #ifndef TWL_NA_ARM9_ARCHIVE_H_
18 #define TWL_NA_ARM9_ARCHIVE_H_
19
20 #include <twl/misc.h>
21 #include <twl/types.h>
22 #include <nitro/os/common/emulator.h>
23
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27
28 /*===========================================================================*/
29
30
31 typedef enum NATitleArchive
32 {
33 NA_TITLE_ARCHIVE_DATAPUB,
34 NA_TITLE_ARCHIVE_DATAPRV,
35 NA_TITLE_ARCHIVE_MAX
36 }
37 NATitleArchive;
38
39
40 FSResult NAi_LoadOtherTitleArchive(const char* initialCode, NATitleArchive archive);
41 FSResult NAi_UnloadOtherTitleArchive(void);
42 FSResult NAi_FormatTitleArchive(NATitleArchive archive);
43
NA_LoadOtherTitleArchive(const char * initialCode,NATitleArchive archive)44 static inline FSResult NA_LoadOtherTitleArchive(const char* initialCode, NATitleArchive archive)
45 { return OS_IsRunOnTwl() ? NAi_LoadOtherTitleArchive(initialCode, archive): FS_RESULT_UNSUPPORTED; }
NA_UnloadOtherTitleArchive(void)46 static inline FSResult NA_UnloadOtherTitleArchive(void)
47 { return OS_IsRunOnTwl() ? NAi_UnloadOtherTitleArchive(): FS_RESULT_UNSUPPORTED; }
NA_FormatTitleArchive(NATitleArchive archive)48 static inline FSResult NA_FormatTitleArchive(NATitleArchive archive)
49 { return OS_IsRunOnTwl() ? NAi_FormatTitleArchive(archive): FS_RESULT_UNSUPPORTED; }
50
51 /*===========================================================================*/
52
53 #ifdef __cplusplus
54 } /* extern "C" */
55 #endif
56
57 #endif /* TWL_NA_ARM9_ARCHIVE_H_ */
58
59 /*---------------------------------------------------------------------------*
60 End of file
61 *---------------------------------------------------------------------------*/
62