app: Fix sorting & deleting
Signed-off-by: Michal Chvila <miso.chvila@gmail.com>
This commit is contained in:
parent
bd5426cd85
commit
86e47c9f59
@ -64,15 +64,15 @@ for i, file in pairs(tbl) do
|
|||||||
local titleid = string.sub(file.name,1,-5)
|
local titleid = string.sub(file.name,1,-5)
|
||||||
local regioncode = string.sub(file.name,1,4)
|
local regioncode = string.sub(file.name,1,4)
|
||||||
if regioncode == "PCSA" or regioncode == "PCSE" then
|
if regioncode == "PCSA" or regioncode == "PCSE" then
|
||||||
file.region = "USA"
|
file.region = "US"
|
||||||
elseif regioncode == "PCSB" then
|
elseif regioncode == "PCSB" then
|
||||||
file.region = "EUR"
|
file.region = "EU"
|
||||||
elseif regioncode == "PCSF" then
|
elseif regioncode == "PCSF" then
|
||||||
file.region = "AUS"
|
file.region = "AU"
|
||||||
elseif regioncode == "PCSG" then
|
elseif regioncode == "PCSG" then
|
||||||
file.region = "JPN"
|
file.region = "JP"
|
||||||
elseif regioncode == "PCSH" then
|
elseif regioncode == "PCSH" then
|
||||||
file.region = "ASN"
|
file.region = "ASIA"
|
||||||
else
|
else
|
||||||
file.region = "UNK"
|
file.region = "UNK"
|
||||||
end
|
end
|
||||||
@ -270,6 +270,7 @@ local big_tbl = {}
|
|||||||
function RenderList()
|
function RenderList()
|
||||||
local r_max = 0
|
local r_max = 0
|
||||||
local r = 0
|
local r = 0
|
||||||
|
big_tbl = {}
|
||||||
if #tbl < 4 then
|
if #tbl < 4 then
|
||||||
r_max = 8
|
r_max = 8
|
||||||
else
|
else
|
||||||
@ -357,7 +358,7 @@ while #tbl > 0 do
|
|||||||
new_list_idx = #tbl
|
new_list_idx = #tbl
|
||||||
end
|
end
|
||||||
mov_y = 1
|
mov_y = 1
|
||||||
mov_step = 22
|
mov_step = 33
|
||||||
end
|
end
|
||||||
elseif Controls.check(pad, SCE_CTRL_DOWN) and mov_y == 0 then
|
elseif Controls.check(pad, SCE_CTRL_DOWN) and mov_y == 0 then
|
||||||
if freeze then
|
if freeze then
|
||||||
@ -368,7 +369,7 @@ while #tbl > 0 do
|
|||||||
new_list_idx = 1
|
new_list_idx = 1
|
||||||
end
|
end
|
||||||
mov_y = -1
|
mov_y = -1
|
||||||
mov_step = -22
|
mov_step = -33
|
||||||
end
|
end
|
||||||
elseif Controls.check(pad, SCE_CTRL_LTRIGGER) and not Controls.check(oldpad, SCE_CTRL_LTRIGGER) and not freeze then
|
elseif Controls.check(pad, SCE_CTRL_LTRIGGER) and not Controls.check(oldpad, SCE_CTRL_LTRIGGER) and not freeze then
|
||||||
order_idx = order_idx - 1
|
order_idx = order_idx - 1
|
||||||
|
Reference in New Issue
Block a user