i have no brain and i must rename

This commit is contained in:
Such Meme, Many Skill
2020-05-02 17:31:00 +02:00
parent b273b1e5ab
commit f9cf371cf9
6 changed files with 74 additions and 11 deletions

View File

@@ -171,9 +171,17 @@ int filemenu(menu_entry file){
break;
utils_copystring(fsutil_getnextloc(currentpath, file.name), &curPath);
f_rename(curPath, fsutil_getnextloc(currentpath, name));
temp = f_rename(curPath, fsutil_getnextloc(currentpath, name));
free(curPath);
free(name);
if (temp){
gfx_errDisplay("fileMenu", temp, 0);
break;
}
fsreader_readfolder(currentpath);
break;
case FILE_PAYLOAD: