RPXLoadingModule/src/globals.h

54 lines
1.3 KiB
C
Raw Normal View History

#include <coreinit/filesystem.h>
2022-02-04 16:35:35 +01:00
#include <coreinit/mutex.h>
#include <wums.h>
2021-01-01 01:39:28 +01:00
2021-02-19 20:32:44 +01:00
typedef struct MetaInformation_t {
char shortname[64];
char longname[64];
char author[64];
2021-02-19 20:32:44 +01:00
} MetaInformation;
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-04-05 19:54:50 +02:00
typedef struct RPXReplacementInfo_t {
bool willRPXBeReplaced;
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
extern RPXLoader_ReplacementInformation gReplacementInfo;
2022-01-26 23:20:21 +01:00
extern FSClient *gFSClient;
extern FSCmdBlock *gFSCmd;