Skip to content

Commit

Permalink
nn_acp: Add ACPRemoveSaveDir*
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew1Hawes authored and GaryOderNichts committed Jul 31, 2024
1 parent 327de26 commit 9a32ef1
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions include/nn/acp/save.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,48 @@ ACPMountExternalStorage();
ACPResult
ACPMountSaveDir();

/**
* Deletes the given user's save data directory for the given title.
*
* \param persistentId
* The persistent ID of the user. Pass \c 0 to delete the 'common' directory.
*
* \return
* ACP_RESULT_SUCCESS on success.
*/
ACPResult
ACPRemoveSaveDir(uint32_t persistentId,
uint64_t titleId,
ACPDeviceType deviceType);

/**
* Deletes the given user's save data directory for the given title.
*
* \param persistentId
* The persistent ID of the user. Pass \c 0 to delete the 'common' directory.
*
* \return
* ACP_RESULT_SUCCESS on success.
*/
ACPResult
ACPRemoveSaveDirWithoutFlush(uint32_t persistentId,
uint64_t titleId,
ACPDeviceType deviceType);

/**
* Deletes the given user's save data directory for the given title.
*
* \param persistentId
* The persistent ID of the user. Pass \c 0 to delete the 'common' directory.
*
* \return
* ACP_RESULT_SUCCESS on success.
*/
ACPResult
ACPRemoveSaveDirWithoutMetaCheck(uint32_t persistentId,
uint64_t titleId,
ACPDeviceType deviceType);

ACPResult
ACPRepairSaveMetaDir();

Expand Down

0 comments on commit 9a32ef1

Please sign in to comment.