mirror of
https://github.com/wiiu-env/RPXLoadingModule.git
synced 2024-11-22 01:49:15 +01:00
Fix displaying the name/icon of an application
This commit is contained in:
parent
26be607bfd
commit
d28b4b3068
@ -198,11 +198,11 @@ bool RL_LoadFromSDOnNextLaunch(const char *bundle_path) {
|
||||
DCFlushRange(&gReplacementInfo, sizeof(gReplacementInfo));
|
||||
|
||||
if (!success) {
|
||||
gReplacementInfo.rpxReplacementInfo.isRPXReplaced = false;
|
||||
gReplacementInfo.rpxReplacementInfo.willRPXBeReplaced = false;
|
||||
DEBUG_FUNCTION_LINE("Failed to load %s on next restart", request.path);
|
||||
return false;
|
||||
} else {
|
||||
gReplacementInfo.rpxReplacementInfo.isRPXReplaced = true;
|
||||
gReplacementInfo.rpxReplacementInfo.willRPXBeReplaced = true;
|
||||
}
|
||||
|
||||
DEBUG_FUNCTION_LINE("Launch %s on next restart [size: %08X offset: %08X]", request.path, request.filesize, request.fileoffset);
|
||||
@ -216,7 +216,7 @@ bool RL_LoadFromSDOnNextLaunch(const char *bundle_path) {
|
||||
gReplacementInfo.contentReplacementInfo.mode = CONTENTREDIRECT_FROM_WUHB_BUNDLE;
|
||||
} else {
|
||||
DEBUG_FUNCTION_LINE("Loaded file is no bundle");
|
||||
gReplacementInfo.rpxReplacementInfo.isRPXReplaced = true;
|
||||
gReplacementInfo.rpxReplacementInfo.willRPXBeReplaced = true;
|
||||
|
||||
if (gReplacementInfo.contentReplacementInfo.mode == CONTENTREDIRECT_FROM_WUHB_BUNDLE &&
|
||||
gReplacementInfo.contentReplacementInfo.bundleMountInformation.isMounted) {
|
||||
|
@ -14,6 +14,7 @@ typedef struct BundleMountInformation_t {
|
||||
} BundleMountInformation;
|
||||
|
||||
typedef struct RPXReplacementInfo_t {
|
||||
bool willRPXBeReplaced;
|
||||
bool isRPXReplaced;
|
||||
MetaInformation metaInformation;
|
||||
char iconCache[65580];
|
||||
|
@ -43,6 +43,7 @@ WUMS_APPLICATION_ENDS() {
|
||||
DCFlushRange(&gReplacementInfo, sizeof(gReplacementInfo));
|
||||
}
|
||||
}
|
||||
gReplacementInfo.rpxReplacementInfo.isRPXReplaced = false;
|
||||
}
|
||||
|
||||
WUMS_APPLICATION_STARTS() {
|
||||
@ -50,6 +51,10 @@ WUMS_APPLICATION_STARTS() {
|
||||
if (upid != 2 && upid != 15) {
|
||||
return;
|
||||
}
|
||||
if (gReplacementInfo.rpxReplacementInfo.willRPXBeReplaced) {
|
||||
gReplacementInfo.rpxReplacementInfo.willRPXBeReplaced = false;
|
||||
gReplacementInfo.rpxReplacementInfo.isRPXReplaced = true;
|
||||
}
|
||||
WHBLogUdpInit();
|
||||
if (gReplacementInfo.contentReplacementInfo.mode == CONTENTREDIRECT_FROM_PATH) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user