1
0
Fork 0
mirror of https://github.com/suchmememanyskill/TegraExplorer.git synced 2024-12-29 04:46:01 +00:00
TegraExplorer/source/tegraexplorer/tconf.c

17 lines
420 B
C
Raw Normal View History

#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
}