mirror of
https://github.com/wiiu-env/RPXLoadingModule.git
synced 2024-11-25 11:26:53 +01:00
Fix /vol/save redirection for .wuhb files
This commit is contained in:
parent
661a79e116
commit
05120c8934
@ -216,6 +216,7 @@ bool RL_LoadFromSDOnNextLaunch(const char *bundle_path) {
|
|||||||
completePath.c_str(),
|
completePath.c_str(),
|
||||||
sizeof(gReplacementInfo.contentReplacementInfo.bundleMountInformation.toMountPath) - 1);
|
sizeof(gReplacementInfo.contentReplacementInfo.bundleMountInformation.toMountPath) - 1);
|
||||||
gReplacementInfo.contentReplacementInfo.mode = CONTENTREDIRECT_FROM_WUHB_BUNDLE;
|
gReplacementInfo.contentReplacementInfo.mode = CONTENTREDIRECT_FROM_WUHB_BUNDLE;
|
||||||
|
gReplacementInfo.contentReplacementInfo.replaceSave = true;
|
||||||
} else {
|
} else {
|
||||||
DEBUG_FUNCTION_LINE("Loaded file is no bundle");
|
DEBUG_FUNCTION_LINE("Loaded file is no bundle");
|
||||||
gReplacementInfo.rpxReplacementInfo.willRPXBeReplaced = true;
|
gReplacementInfo.rpxReplacementInfo.willRPXBeReplaced = true;
|
||||||
@ -227,6 +228,8 @@ bool RL_LoadFromSDOnNextLaunch(const char *bundle_path) {
|
|||||||
strncat(gReplacementInfo.contentReplacementInfo.bundleMountInformation.toMountPath,
|
strncat(gReplacementInfo.contentReplacementInfo.bundleMountInformation.toMountPath,
|
||||||
gReplacementInfo.contentReplacementInfo.bundleMountInformation.mountedPath,
|
gReplacementInfo.contentReplacementInfo.bundleMountInformation.mountedPath,
|
||||||
sizeof(gReplacementInfo.contentReplacementInfo.bundleMountInformation.toMountPath) - 1);
|
sizeof(gReplacementInfo.contentReplacementInfo.bundleMountInformation.toMountPath) - 1);
|
||||||
|
} else {
|
||||||
|
gReplacementInfo.contentReplacementInfo.replaceSave = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,8 +61,9 @@ WUMS_APPLICATION_STARTS() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (_SYSGetSystemApplicationTitleId(SYSTEM_APP_ID_HEALTH_AND_SAFETY) != OSGetTitleID()) {
|
if (_SYSGetSystemApplicationTitleId(SYSTEM_APP_ID_HEALTH_AND_SAFETY) != OSGetTitleID()) {
|
||||||
DEBUG_FUNCTION_LINE("Set gTryToReplaceOnNextLaunch, gReplacedRPX and gIsMounted to FALSE");
|
DEBUG_FUNCTION_LINE("Set mode to CONTENTREDIRECT_NONE and replaceSave to false");
|
||||||
gReplacementInfo.contentReplacementInfo.mode = CONTENTREDIRECT_NONE;
|
gReplacementInfo.contentReplacementInfo.mode = CONTENTREDIRECT_NONE;
|
||||||
|
gReplacementInfo.contentReplacementInfo.replaceSave = false;
|
||||||
DCFlushRange(&gReplacementInfo, sizeof(gReplacementInfo));
|
DCFlushRange(&gReplacementInfo, sizeof(gReplacementInfo));
|
||||||
} else {
|
} else {
|
||||||
if (gReplacementInfo.contentReplacementInfo.mode == CONTENTREDIRECT_FROM_WUHB_BUNDLE) {
|
if (gReplacementInfo.contentReplacementInfo.mode == CONTENTREDIRECT_FROM_WUHB_BUNDLE) {
|
||||||
|
Loading…
Reference in New Issue
Block a user