2020-12-24 16:06:21 +00:00
|
|
|
#pragma once
|
|
|
|
#include <utils/types.h>
|
2020-12-26 21:24:41 +00:00
|
|
|
#include "../keys/keys.h"
|
2020-12-24 16:06:21 +00:00
|
|
|
|
|
|
|
enum {
|
2020-12-25 20:16:24 +00:00
|
|
|
LOC_None = 0,
|
|
|
|
LOC_SD,
|
2020-12-24 16:06:21 +00:00
|
|
|
LOC_EMMC,
|
|
|
|
LOC_EMUMMC
|
|
|
|
};
|
|
|
|
|
|
|
|
enum {
|
|
|
|
CMODE_None = 0,
|
|
|
|
CMODE_Copy,
|
2020-12-29 00:05:33 +00:00
|
|
|
CMODE_Move,
|
|
|
|
CMODE_CopyFolder,
|
|
|
|
CMODE_MoveFolder
|
2020-12-24 16:06:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
u32 FSBuffSize;
|
|
|
|
char *srcCopy;
|
|
|
|
union {
|
|
|
|
struct {
|
2020-12-25 20:16:24 +00:00
|
|
|
u16 minervaEnabled:1;
|
2020-12-26 22:41:25 +00:00
|
|
|
u16 keysDumped:1;
|
2020-12-25 20:16:24 +00:00
|
|
|
u16 curExplorerLoc:2;
|
|
|
|
u16 heldExplorerCopyLoc:2;
|
2020-12-29 00:05:33 +00:00
|
|
|
u16 explorerCopyMode:4;
|
2020-12-26 22:41:25 +00:00
|
|
|
u16 currentMMCConnected:2;
|
|
|
|
u16 connectedMMCMounted:1;
|
2020-12-24 16:06:21 +00:00
|
|
|
};
|
2020-12-25 20:16:24 +00:00
|
|
|
u16 optionUnion;
|
2020-12-24 16:06:21 +00:00
|
|
|
};
|
2020-12-26 22:41:25 +00:00
|
|
|
const char *pkg1ID;
|
2021-07-27 20:05:32 +01:00
|
|
|
char *scriptCWD;
|
2020-12-24 16:06:21 +00:00
|
|
|
} TConf_t;
|
|
|
|
|
2020-12-25 20:16:24 +00:00
|
|
|
extern TConf_t TConf;
|
|
|
|
|
|
|
|
void ResetCopyParams();
|
2020-12-26 00:05:33 +00:00
|
|
|
void SetCopyParams(const char *path, u8 mode);
|