@@ -47,6 +47,7 @@ char *GetFileAttribs(FSEntry_t entry){
|
||||
return ret;
|
||||
}
|
||||
|
||||
// Returns 1 if a file exists, 0 if it does not
|
||||
bool FileExists(const char* path){
|
||||
FRESULT fr;
|
||||
FILINFO fno;
|
||||
|
||||
@@ -74,6 +74,7 @@ void FileExplorer(char *path){
|
||||
res = 0;
|
||||
|
||||
res = newMenu(&entries, res, 60, 42, ENABLEB | ENABLEPAGECOUNT, (int)fileVec.count);
|
||||
vecFree(entries);
|
||||
|
||||
char *oldPath = storedPath;
|
||||
|
||||
@@ -125,6 +126,7 @@ void FileExplorer(char *path){
|
||||
else if (res < ARR_LEN(topEntries)) {
|
||||
if (!strcmp(storedPath, path)){
|
||||
clearFileVector(&fileVec);
|
||||
free(storedPath);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
#pragma once
|
||||
#include "../../utils/vector.h"
|
||||
#include "../../gfx/menu.h"
|
||||
#include "../fstypes.h"
|
||||
|
||||
void FileExplorer(char *path);
|
||||
void FileExplorer(char *path);
|
||||
MenuEntry_t MakeMenuOutFSEntry(FSEntry_t entry);
|
||||
Reference in New Issue
Block a user