//Pascal &or the FreePascal use of nintendo 2ds, 3ds regime // // Copyright (c) 2013, 2015, 2017 Kenneth Dwayne Lee Bsc. // all rights reserved // {@file ampxi.h @brief AMPXI service. This is normally not accessible to userland apps. https://3dbrew.org/wiki/Application_Manager_Services_PXI } function ampxiInit(servhandle:Handle):s32;cdecl;external; {/ Exits AMPXI. } procedure ampxiExit;cdecl;external; {* * @brief Writes a TWL save-file to NAND. https://www.3dbrew.org/wiki/AMPXI:WriteTWLSavedata * @param titleid ID of the TWL title. * @param buffer Savedata buffer ptr. * @param size Size of the savedata buffer. * @param image_filepos Filepos to use for writing the data to the NAND savedata file. * @param section_type https://www.3dbrew.org/wiki/AMPXI:WriteTWLSavedata * @param operation https://3dbrew.org/wiki/AM:ImportDSiWare } function AMPXI_WriteTWLSavedata(titleid:u64; buffer:Pu8; size:u32; image_filepos:u32; section_type:u8; operation:u8):s32;cdecl;external; {* * @brief Finalizes title installation. https://3dbrew.org/wiki/AMPXI:InstallTitlesFinish * @param mediaType Mediatype of the titles to finalize. * @param db Which title database to use. * @param size Size of the savedata buffer. * @param titlecount Total titles. * @param tidlist List of titleIDs. } function AMPXI_InstallTitlesFinish(mediaType:FS_MediaType; db:u8; titlecount:u32; tidlist:Pu64):s32;cdecl;external;