2020-12-24 16:06:21 +00:00
|
|
|
#include "tconf.h"
|
2020-12-25 20:16:24 +00:00
|
|
|
#include <mem/heap.h>
|
2020-12-26 00:05:33 +00:00
|
|
|
#include "../utils/utils.h"
|
2020-12-25 20:16:24 +00:00
|
|
|
TConf_t TConf = {0};
|
|
|
|
|
|
|
|
void ResetCopyParams(){
|
|
|
|
TConf.heldExplorerCopyLoc = LOC_None;
|
2020-12-26 00:05:33 +00:00
|
|
|
FREE(TConf.srcCopy);
|
2020-12-25 20:16:24 +00:00
|
|
|
TConf.explorerCopyMode = CMODE_None;
|
|
|
|
}
|
|
|
|
|
2020-12-26 00:05:33 +00:00
|
|
|
void SetCopyParams(const char *path, u8 mode){
|
2020-12-25 20:16:24 +00:00
|
|
|
ResetCopyParams();
|
|
|
|
TConf.heldExplorerCopyLoc = TConf.curExplorerLoc;
|
|
|
|
TConf.explorerCopyMode = mode;
|
2020-12-26 00:05:33 +00:00
|
|
|
TConf.srcCopy = CpyStr(path);
|
2020-12-25 20:16:24 +00:00
|
|
|
}
|