2021-01-01 01:39:28 +01:00
|
|
|
#include <wums.h>
|
|
|
|
#include <coreinit/mutex.h>
|
|
|
|
|
2021-02-19 20:32:44 +01:00
|
|
|
typedef struct MetaInformation_t {
|
2021-01-17 13:57:57 +01:00
|
|
|
char shortname[64];
|
|
|
|
char longname[64];
|
|
|
|
char author[64];
|
2021-02-19 20:32:44 +01:00
|
|
|
} MetaInformation;
|
2021-01-17 13:57:57 +01:00
|
|
|
|
2021-02-19 20:32:44 +01:00
|
|
|
typedef struct BundleMountInformation_t {
|
|
|
|
bool isMounted;
|
2021-04-05 19:54:50 +02:00
|
|
|
char toMountPath[255];
|
|
|
|
char mountedPath[255];
|
2021-02-19 20:32:44 +01:00
|
|
|
} BundleMountInformation;
|
2021-01-17 13:57:57 +01:00
|
|
|
|
2021-04-05 19:54:50 +02:00
|
|
|
typedef struct RPXReplacementInfo_t {
|
2021-02-19 20:32:44 +01:00
|
|
|
bool isRPXReplaced;
|
|
|
|
MetaInformation metaInformation;
|
|
|
|
char iconCache[65580];
|
2021-04-05 19:54:50 +02:00
|
|
|
} RPXReplacementInfo;
|
|
|
|
|
|
|
|
typedef enum ContentRedirect_Mode {
|
|
|
|
CONTENTREDIRECT_NONE,
|
|
|
|
CONTENTREDIRECT_FROM_WUHB_BUNDLE,
|
|
|
|
CONTENTREDIRECT_FROM_PATH,
|
|
|
|
} ContentRedirect_Mode;
|
|
|
|
|
|
|
|
typedef struct ContentReplacementInfo_t {
|
|
|
|
ContentRedirect_Mode mode;
|
|
|
|
|
|
|
|
BundleMountInformation bundleMountInformation;
|
|
|
|
|
|
|
|
char workingDir[255];
|
|
|
|
|
|
|
|
char replacementPath[255];
|
|
|
|
|
|
|
|
bool replaceSave;
|
|
|
|
|
2021-02-19 20:32:44 +01:00
|
|
|
char savePath[255];
|
2021-04-05 19:54:50 +02:00
|
|
|
|
|
|
|
bool fallbackOnError;
|
|
|
|
} ContentReplacementInfo;
|
|
|
|
|
|
|
|
typedef struct RPXLoader_ReplacementInformation_t {
|
|
|
|
RPXReplacementInfo rpxReplacementInfo;
|
|
|
|
ContentReplacementInfo contentReplacementInfo;
|
2021-02-19 20:32:44 +01:00
|
|
|
} RPXLoader_ReplacementInformation;
|
|
|
|
|
2021-04-05 19:54:50 +02:00
|
|
|
|
2021-02-19 20:32:44 +01:00
|
|
|
extern RPXLoader_ReplacementInformation gReplacementInfo;
|