1
0
Fork 0
mirror of https://github.com/suchmememanyskill/TegraExplorer.git synced 2024-11-29 15:22:09 +00:00
TegraExplorer/source/tegraexplorer/tconf.c
2020-12-26 01:05:33 +01:00

17 lines
No EOL
420 B
C

#include "tconf.h"
#include <mem/heap.h>
#include "../utils/utils.h"
TConf_t TConf = {0};
void ResetCopyParams(){
TConf.heldExplorerCopyLoc = LOC_None;
FREE(TConf.srcCopy);
TConf.explorerCopyMode = CMODE_None;
}
void SetCopyParams(const char *path, u8 mode){
ResetCopyParams();
TConf.heldExplorerCopyLoc = TConf.curExplorerLoc;
TConf.explorerCopyMode = mode;
TConf.srcCopy = CpyStr(path);
}