Initial Commit
This commit is contained in:
17
TegraExplorer/source/tegraexplorer/tconf.c
Normal file
17
TegraExplorer/source/tegraexplorer/tconf.c
Normal file
@@ -0,0 +1,17 @@
|
||||
#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);
|
||||
}
|
||||
Reference in New Issue
Block a user