1
0
Fork 0
mirror of https://github.com/suchmememanyskill/TegraExplorer.git synced 2024-11-10 14:11:45 +00:00
TegraExplorer/source/tegraexplorer/utils/utils.c

38 lines
867 B
C
Raw Normal View History

2020-03-18 22:58:32 +00:00
#include <string.h>
2020-03-17 23:41:09 +00:00
#include "utils.h"
#include "../common/common.h"
#include "../gfx/menu.h"
#include "../../storage/emummc.h"
2020-03-18 22:58:32 +00:00
#include "../../mem/heap.h"
2020-05-02 12:33:54 +01:00
/*
#include "../../utils/util.h"
#include "../../utils/sprintf.h"
#include "../../libs/fatfs/ff.h"
#include "../fs/fsutils.h"
*/
2020-03-17 23:41:09 +00:00
int utils_mmcMenu(){
if (emu_cfg.enabled)
return menu_make(utils_mmcChoice, 3, "-- Choose MMC --");
else
return SYSMMC;
2020-03-18 22:58:32 +00:00
}
void utils_copystring(const char *in, char **out){
int len = strlen(in) + 1;
*out = (char *) malloc (len);
strcpy(*out, in);
2020-05-02 12:33:54 +01:00
}
/*
void utils_takeScreenshot(){
char *name, *path;
char basepath[] = "sd:/tegraexplorer/screenshots";
name = malloc(35);
sprintf(name, "Screenshot_%d", get_tmr_s());
f_mkdir("sd:/tegraexplorer");
f_mkdir(basepath);
path = fsutil_getnextloc(basepath, name);
}
*/