Forgot to update delete commands location after changing file hierarchy

This commit is contained in:
Furkan Mudanyali 2020-03-22 00:49:32 +03:00
parent d0938ac2df
commit 3e565e5f4a

View File

@ -370,7 +370,7 @@ while #tbl > 0 do
elseif Controls.check(pad, SCE_CTRL_CROSS) and not Controls.check(oldpad, SCE_CTRL_CROSS) and freeze then elseif Controls.check(pad, SCE_CTRL_CROSS) and not Controls.check(oldpad, SCE_CTRL_CROSS) and freeze then
freeze = false freeze = false
if f_idx == 1 then -- Delete if f_idx == 1 then -- Delete
System.deleteFile("ux0:/data/TrackPlug/" .. tbl[list_idx].title) System.deleteFile("ux0:/data/TrackPlug/Records/" .. tbl[list_idx].id .. ".bin")
table.remove(tbl, list_idx) table.remove(tbl, list_idx)
big_tbl = {} big_tbl = {}
list_idx = list_idx - 1 list_idx = list_idx - 1