Skip to content
This repository has been archived by the owner on Mar 7, 2020. It is now read-only.

Commit

Permalink
Merge pull request #251 from ONElua/master
Browse files Browse the repository at this point in the history
Some Fixs
  • Loading branch information
theheroGAC authored Apr 29, 2019
2 parents bbdc8f1 + f3f0d75 commit 2b01e38
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 19 deletions.
6 changes: 3 additions & 3 deletions menu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ while true do

screen.print(480,25,LANGUAGE["MENU_TITLE"],1.3,color.green, 0x0, __ACENTER)

local y = 160
local y = 145
for i=scrollm.ini, scrollm.lim do
if i == scrollm.sel then draw.offsetgradrect(0,y-10,960,32,color.shine:a(55),color.shine:a(105),0x0,0x0,21) end
if i == scrollm.sel then draw.offsetgradrect(10,y-12,960-20,40,color.shine:a(75),color.shine:a(135),0x0,0x0,21) end
screen.print(480,y,menu[i].text,1.2,color.white, 0x0, __ACENTER)
y+=38
y+=45
end

screen.flip()
Expand Down
Binary file modified resources/back.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 2 additions & 4 deletions scripts/psvita/autoplugin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,8 @@ function plugins_installation(sel)
if plugins[sel].path == "vsh.suprx" then files.delete("ur0:/data:/vsh/")
elseif plugins[sel].path == "custom_boot_splash.skprx" and not files.exists("ur0:tai/boot_splash.bin") then--Custom Boot Splash
img2splashbin("resources/boot_splash.png")
elseif plugins[sel].path == "vitacheat.skprx" and not files.exists("ux0:vitacheat/db/") then--Vitacheat
files.extract("resources/plugins/vitacheat.zip","ux0:")
elseif plugins[sel].path == "vitacheat360.skprx" and not files.exists("ux0:vitacheat/db/") then--Vitacheat for 3.60
files.extract("resources/plugins/vitacheat.zip","ux0:")
elseif plugins[sel].path == "vitacheat.skprx" or plugins[sel].path == "vitacheat360.skprx" then--Vitacheat
if not files.exists("ux0:vitacheat/db/") then files.extract("resources/plugins/vitacheat.zip","ux0:") end
elseif plugins[sel].path == "AutoBoot.suprx" and not files.exists("ux0:data/AutoBoot/") then--AutoBoot
files.extract("resources/plugins/AutoBoot.zip","ux0:")
elseif plugins[sel].path == "ps4linkcontrols.suprx" and not files.exists("ux0:ps4linkcontrols.txt") then--ps4linkcontrols
Expand Down
8 changes: 5 additions & 3 deletions scripts/psvita/menu_psvita.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ function menu_ps()
plugins_online()
end

if tai.find(__UR0, "KERNEL", "storagemgr.skprx") then
LANGUAGE["MENU_INSTALL_SD2VITA"] = LANGUAGE["MENU_CONFIGURE_SD2VITA"]
LANGUAGE["INSTALL_SD2VITA_DESC"] = LANGUAGE["CONFIG_SD2VITA_DESC"]
if tai[__UR0].exist then
if tai.find(__UR0, "KERNEL", "storagemgr.skprx") then
LANGUAGE["MENU_INSTALL_SD2VITA"] = LANGUAGE["MENU_CONFIGURE_SD2VITA"]
LANGUAGE["INSTALL_SD2VITA_DESC"] = LANGUAGE["CONFIG_SD2VITA_DESC"]
end
end

local menu_psvita = {
Expand Down
24 changes: 15 additions & 9 deletions scripts/psvita/sd2vita.lua
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ function install()
if files.exists(tai[__UR0].path) then

--Install plugin to tai folder
files.copy(path_plugins .. "storagemgr.skprx", "ur0:tai")
files.copy(path_plugins .. "storage_config.txt", "ur0:tai")
files.copy(path_plugins.."storagemgr.skprx", "ur0:tai")
files.copy(path_plugins.."storage_config.txt", "ur0:tai")

--Insert plugin to Config
tai.put(__UR0, "KERNEL", "ur0:tai/storagemgr.skprx", 1)
Expand Down Expand Up @@ -206,13 +206,17 @@ function configure()
if buttons.down or buttons.analogly > 60 then scrollm:down() end

if buttons[cancel] then return end

if buttons.triangle then check_storage_config(devices) end

if buttons.released.l or buttons.released.left then
devices[scrollm.sel].mount = mounts[new_mount(devices[scrollm.sel].mount.index, #mounts, false)]
end

if buttons.released.r or buttons.released.right then
devices[scrollm.sel].mount = mounts[new_mount(devices[scrollm.sel].mount.index, #mounts, true)]
end

end
end

Expand Down Expand Up @@ -289,13 +293,14 @@ function save_storage_config(devices)
end

function read_storage_config()
if files.exists("ur0:tai/storage_config.txt") then
data = {}
for line in io.lines("ur0:tai/storage_config.txt") do
--data[#data+1]=line
table.insert(data,line)
end

if not files.exists("ur0:tai/storage_config.txt") then files.copy(path_plugins.."storage_config.txt", "ur0:tai") end

local data = {}
for line in io.lines("ur0:tai/storage_config.txt") do
table.insert(data,line)
end

return data
end

Expand All @@ -316,7 +321,8 @@ function parse_mounts(devices, mounts, original)
end

function sd2vita()
if tai.find(__UR0, "KERNEL", "storagemgr.skprx") then
if tai[__UR0].exist and tai.find(__UR0, "KERNEL", "storagemgr.skprx") then
if not files.exists("ur0:tai/storage_config.txt") then files.copy(path_plugins.."storage_config.txt", "ur0:tai") end
configure()
else
install()
Expand Down

0 comments on commit 2b01e38

Please sign in to comment.