diff --git a/include/rpxloader.h b/include/rpxloader.h index 4361127..9517865 100644 --- a/include/rpxloader.h +++ b/include/rpxloader.h @@ -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 \ No newline at end of file diff --git a/source/rpx_loader.def b/source/rpx_loader.def index 04d0d9c..131a0ce 100644 --- a/source/rpx_loader.def +++ b/source/rpx_loader.def @@ -7,4 +7,6 @@ RL_UnmountBundle RL_FileOpen RL_FileRead RL_FileClose -RL_FileExists \ No newline at end of file +RL_FileExists +RL_RedirectContentWithFallback +RL_DisableContentRedirection \ No newline at end of file