From b9af4a6cb83182e94bc3f20d873667a6b6762464 Mon Sep 17 00:00:00 2001 From: Maschell Date: Sat, 2 Oct 2021 11:38:36 +0200 Subject: [PATCH] Add RL_UnmountCurrentRunningBundle support --- include/rpxloader.h | 8 ++++++++ source/rpx_loader.def | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/include/rpxloader.h b/include/rpxloader.h index 220dbb7..eb6c111 100644 --- a/include/rpxloader.h +++ b/include/rpxloader.h @@ -112,6 +112,14 @@ bool RL_RedirectContentWithFallback(const char *pathToContent); */ bool RL_DisableContentRedirection(); +/** + * Unmounts the currently running bundle. This also disables the /vol/content redirection + * + * @return true if a .wuhb is running and the /vol/content was previously redirected + * false if no .wuhb is running or no /vol/content redirection is active. + */ +bool RL_UnmountCurrentRunningBundle(); + #ifdef __cplusplus } // extern "C" #endif \ No newline at end of file diff --git a/source/rpx_loader.def b/source/rpx_loader.def index 131a0ce..c01e05a 100644 --- a/source/rpx_loader.def +++ b/source/rpx_loader.def @@ -9,4 +9,5 @@ RL_FileRead RL_FileClose RL_FileExists RL_RedirectContentWithFallback -RL_DisableContentRedirection \ No newline at end of file +RL_DisableContentRedirection +RL_UnmountCurrentRunningBundle \ No newline at end of file