mirror of
https://github.com/wiiu-env/librpxloader.git
synced 2025-02-19 19:42:58 +01:00
Add RL_RedirectContentWithFallback and RL_DisableContentRedirection
This commit is contained in:
parent
5f08be3d1f
commit
bf95de74ec
@ -91,6 +91,25 @@ int32_t RL_FileClose(uint32_t handle);
|
|||||||
*/
|
*/
|
||||||
bool RL_FileExists(const char *name);
|
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
|
#ifdef __cplusplus
|
||||||
} // extern "C"
|
} // extern "C"
|
||||||
#endif
|
#endif
|
@ -7,4 +7,6 @@ RL_UnmountBundle
|
|||||||
RL_FileOpen
|
RL_FileOpen
|
||||||
RL_FileRead
|
RL_FileRead
|
||||||
RL_FileClose
|
RL_FileClose
|
||||||
RL_FileExists
|
RL_FileExists
|
||||||
|
RL_RedirectContentWithFallback
|
||||||
|
RL_DisableContentRedirection
|
Loading…
x
Reference in New Issue
Block a user