From 54445a89ff8eb990d91dbfd0c6c1c35b5515ff66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Furkan=20Mudanyal=C4=B1?= Date: Sun, 15 Mar 2020 16:55:29 +0300 Subject: [PATCH] Adding readme and i actually forgot what i did --- README.md | 13 +++++++++++++ app/index.lua | 26 +++++++++++++------------- 2 files changed, 26 insertions(+), 13 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..f787de7 --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +# Known Bugs/Issues +- Launching PSP games from Adrenaline directly causes issues, I recommend launching games from their bubbles instead. +- Using Adrenaline Bubbles Manager, having BubbleID set to PSPEMUXXX makes the app show the title as the games initial plus d, Md or Od for example. +- Homebrews don't show up. +- Dead or Alive 5 Plus once made the app crash. I don't know if the issue persists. + +# To-Do +- Fix all the quirks, hopefully. +- Add customization back. + +# Credits +- [Rinnegatamante](https://github.com/Rinnegatamante) for creating TrackPlug in the first place. +- [Electry](https://github.com/Electry/) for adding pspemu support. \ No newline at end of file diff --git a/app/index.lua b/app/index.lua index aeacfee..2e37573 100644 --- a/app/index.lua +++ b/app/index.lua @@ -4,16 +4,19 @@ System.createDirectory("ux0:/data/TrackPlugArchive") -- Scanning TrackPlug folder local tbl = System.listDirectory("ux0:/data/TrackPlug") --- Removing apps with no region, may also add livetweet, crunchyroll etc. +local blacklist = { + "VITASHELL", -- Vitashell + "TPLG00001", -- TrackPlug + "NPXS10028" -- PSPEMU app itself +} +-- Removing blacklisted games for i, file in pairs(tbl) do - local regcod = string.sub(file.name,1,4) local titleid = string.sub(file.name,1,-5) - -- DOA 5 Plus breaks the tracker - if titleid == "PCSE00235" then - System.deleteFile("ux0:/data/TrackPlug/"..file.name) - elseif regcod ~= "PCSA" and regcod ~= "PCSE" and regcod ~= "PCSB" and regcod ~= "PCSF" and regcod ~= "PCSG" and regcod ~= "PCSH" then - System.deleteFile("ux0:/data/TrackPlug/"..file.name) - end + for k, toberemoved in pairs(blacklist) do + if titleid == blacklist[k] then + System.deleteFile("ux0:/data/TrackPlug/"..file.name) + end + end end -- Reset the table tbl = System.listDirectory("ux0:/data/TrackPlug") @@ -122,7 +125,7 @@ function getRegion(titleid) region = "Asia (PS1)" elseif prefix == "PU" then region = "USA (PS1)" - elseif string.sub(file.name,1,6) == "PSPEMU" then + elseif string.sub(titleid,1,6) == "PSPEMU" then region = "PSP/PS1" end @@ -151,7 +154,7 @@ for i, file in pairs(tbl) do elseif System.doesFileExist("ux0:/app/" .. titleid .. "/sce_sys/param.sfo") then file.title = extractTitle("ux0:/app/" .. titleid .. "/sce_sys/param.sfo", titleid) else - file.title = "Unknown Title" + file.title = "Unknown - " .. titleid end file.id = titleid fd = System.openFile("ux0:/data/TrackPlug/" .. file.name, FREAD) @@ -160,9 +163,6 @@ for i, file in pairs(tbl) do System.closeFile(fd) end end -if cfg_idx ~= nil then - table.remove(tbl, cfg_idx) -end -- Background wave effect local colors = {