NA_LoadOtherTitleArchive

Syntax

#include <twl/na.h>

FSResult NA_LoadOtherTitleArchive( const char*    initialCode,
                                   NATitleArchive archive);

Arguments

initialCode Specifies the game code for the target NAND application as a 4-character ASCII string. It does not need to be null-terminated.
archive Specifies the type of save data to load.

Return Values

Returns FS_RESULT_SUCCESS if processing completed successfully.
Other values indicate an error. The following values, in particular, have specific meanings.

FS_RESULT_ALREADY_DONESave data has already been loaded from another NAND application.
FS_RESULT_PERMISSION_DENIEDThe NAND application has a different company code.
FS_RESULT_UNSUPPORTEDThis is running on the Nintendo DS and cannot be used.

Description

Loads the specified NAND application's save data region to the file system.

You can only load save data from NAND applications with the same company code as this application. You cannot load save data from NAND applications with a different company code.

If archive is NA_TITLE_ARCHIVE_DATAPUB, the save data is loaded as otherPub archive. If archive is NA_TITLE_ARCHIVE_DATAPRV, it is loaded as otherPrv archive.

Only a single save data region from another NAND application can be loaded at once. To access more than one save data region, you must call the NA_UnloadOtherTitleArchive function to unload a save data region whenever one is accessed.

See Also

NA_UnloadOtherTitleArchive

Revision History

2009/05/13 Added link to See Also.
2008/09/16 Added FS_RESULT_UNSUPPORTED to the return values.
2008/07/14 Initial version.


CONFIDENTIAL