Merge pull request #2 from chinseng85/master
Fix app error due to App/Game icon0.png is missing
This commit is contained in:
commit
55402a0adf
@ -147,19 +147,20 @@ for i, file in pairs(tbl) do
|
|||||||
else
|
else
|
||||||
local titleid = string.sub(file.name,1,-5)
|
local titleid = string.sub(file.name,1,-5)
|
||||||
file.region = getRegion(titleid)
|
file.region = getRegion(titleid)
|
||||||
|
|
||||||
if System.doesFileExist("ux0:/data/TrackPlug/Assets/" .. titleid .. "/icon0.png") then
|
if System.doesFileExist("ux0:/data/TrackPlug/Assets/" .. titleid .. "/icon0.png") then
|
||||||
file.icon = Graphics.loadImage("ux0:/data/TrackPlug/Assets/" .. titleid .. "/icon0.png")
|
file.icon = Graphics.loadImage("ux0:/data/TrackPlug/Assets/" .. titleid .. "/icon0.png")
|
||||||
elseif System.doesFileExist("ur0:/appmeta/" .. titleid .. "/icon0.png") then
|
else
|
||||||
file.icon = Graphics.loadImage("ur0:/appmeta/" .. titleid .. "/icon0.png")
|
|
||||||
System.createDirectory("ux0:/data/TrackPlug/Assets/" .. titleid .. "")
|
System.createDirectory("ux0:/data/TrackPlug/Assets/" .. titleid .. "")
|
||||||
copyIcon(titleid)
|
if System.doesFileExist("ur0:/appmeta/" .. titleid .. "/icon0.png") then
|
||||||
else
|
file.icon = Graphics.loadImage("ur0:/appmeta/" .. titleid .. "/icon0.png")
|
||||||
file.icon = unk
|
copyIcon(titleid)
|
||||||
end
|
else
|
||||||
|
file.icon = unk
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
if System.doesFileExist("ux0:/data/TrackPlug/Assets/" .. titleid .. "/title.txt") then
|
if System.doesFileExist("ux0:/data/TrackPlug/Assets/" .. titleid .. "/title.txt") then
|
||||||
file.title = recoverTitle(titleid)
|
file.title = recoverTitle(titleid)
|
||||||
elseif System.doesFileExist("ux0:/app/" .. titleid .. "/sce_sys/param.sfo") then
|
elseif System.doesFileExist("ux0:/app/" .. titleid .. "/sce_sys/param.sfo") then
|
||||||
file.title = extractTitle("ux0:/app/" .. titleid .. "/sce_sys/param.sfo", titleid)
|
file.title = extractTitle("ux0:/app/" .. titleid .. "/sce_sys/param.sfo", titleid)
|
||||||
|
Reference in New Issue
Block a user