Add RL_RedirectContentWithFallback and RL_DisableContentRedirection

This commit is contained in:
Maschell 2021-04-06 16:36:32 +02:00
parent 5f08be3d1f
commit bf95de74ec
2 changed files with 22 additions and 1 deletions

View File

@ -91,6 +91,25 @@ int32_t RL_FileClose(uint32_t handle);
*/
bool RL_FileExists(const char *name);
/**
* Redirects /vol/content to a given path.
* If the application requests a file that is not present in the new path,
* it'll fallback to the original /vol/content.
*
* example: RL_RedirectContentWithFallback("fs:/vol/external01/sdcafiine/0005000010145000/content");
*
* @param pathToContent The path /vol/content should be redirected to.
* @return true if the given path is valid and can be used, false on error.
*/
bool RL_RedirectContentWithFallback(const char *pathToContent);
/**
* Disables the /vol/content redirection
*
* @return true if /vol/content was previously redirected
*/
bool RL_DisableContentRedirection();
#ifdef __cplusplus
} // extern "C"
#endif

View File

@ -7,4 +7,6 @@ RL_UnmountBundle
RL_FileOpen
RL_FileRead
RL_FileClose
RL_FileExists
RL_FileExists
RL_RedirectContentWithFallback
RL_DisableContentRedirection