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

Commit

Permalink
v1.03
Browse files Browse the repository at this point in the history
  • Loading branch information
theheroGAC authored Apr 25, 2018
1 parent 1edfddd commit 69c59d1
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 9 deletions.
3 changes: 1 addition & 2 deletions git/shared.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ APP_REPO = "theheroGAC"
APP_PROJECT = "Autoplugin"

APP_VERSION_MAJOR = 0x01 -- major.minor
APP_VERSION_MINOR = 0x02

APP_VERSION_MINOR = 0x03
APP_VERSION = ((APP_VERSION_MAJOR << 0x18) | (APP_VERSION_MINOR << 0x10)) -- Union Binary
58 changes: 52 additions & 6 deletions resources/autoplugin.lua
Original file line number Diff line number Diff line change
@@ -1,11 +1,57 @@
------Autoinstall plugin
os.message("Press x to install the plugins or Press PS to return to the Livearea \n\nThe old file config.txt will be saved as config_backup.txt in ux0:tai",0)
if files.exists("ux0:tai/config.txt") then files.rename("ux0:tai/config.txt", "config_backup.txt") end
files.extract("resources/autoplugin.zip","ur0:/tai")
files.extract("resources/autoplugin.zip","ux0:/tai")
files.extract("resources/config.zip","ux0:/tai")
-------------------Resource-----------

color.loadpalette() -- Load Defaults colors
back = image.load("resources/back.png")

while true do
buttons.read()
if back then back:blit(0,0) end

screen.print(10,20,"Autoplugin Install the plugins with a click",1,color.red)
screen.print(15,160,"Press CROSS to install Plugins on ux0:tai",1,color.white,color.blue)
screen.print(15,190,"Press CIRCLE to install Plugins on ur0:tai.",1,color.white,color.black)
screen.print(15,220,"Press TRIANGLE to install Plugins on PSTV ONLY(ux0:tai).",1,color.white,color.green)
screen.print(15,250,"Press SQUARE to restart/reset APP.",1,color.white,color.blue)
screen.print(15,280,"Press START to exit.",1,color.white,color.red)

screen.flip() -- Show Buff

if buttons.cross then
if files.exists("ux0:tai/config.txt") then files.rename("ux0:tai/config.txt", "config_backup.txt") end
files.extract("resources/autoplugin.zip","ux0:/tai")
files.extract("resources/config.zip","ux0:/tai")
os.message("Your PSVita will restart...\nThe plugins have been installed\n\nThe old file config.txt has been saved to ux0:tai/config_backup.txt",0)
os.delay(2500)
buttons.homepopup(1)
power.restart()
power.restart()
end

if buttons.circle then
if files.exists("ur0:tai/config.txt") then files.rename("ur0:tai/config.txt", "config_backup.txt") end
files.extract("resources/autoplugin.zip","ur0:/tai")
files.extract("resources/config2.zip","ur0:/tai")
os.message("Your PSVita will restart...\nThe plugins have been installed\n\nThe old file config.txt has been saved to ur0:tai/config_backup.txt",0)
os.delay(2500)
buttons.homepopup(1)
power.restart()
end


if buttons.triangle then
if files.exists("ux0:tai/config.txt") then files.rename("ux0:tai/config.txt", "config_backup.txt") end
files.extract("resources/autoplugin2.zip","ux0:/tai")
files.extract("resources/config.zip","ux0:/tai")
os.message("Your VITATV will restart...\nThe plugins have been installed\n\nThe old file config.txt has been saved to ux0:tai/config_backup.txt",0)
os.delay(2500)
buttons.homepopup(1)
power.restart()
end


if buttons.square then
os.restart()
end

if buttons.released.start then break end -- Exit
end
Binary file added resources/autoplugin2.zip
Binary file not shown.
Binary file added 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.
Binary file added resources/config2.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion sce_sys/livearea/contents/template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<frame id="frame4">
<liveitem>
<text align="left" text-align="left" word-wrap="off" ellipsis="on">
<str size="18" color="#ffffff" shadow="on">v1.02</str>
<str size="18" color="#ffffff" shadow="on">v1.03</str>
</text>
</liveitem>
</frame>
Expand Down
Binary file modified sce_sys/param.sfo
Binary file not shown.

0 comments on commit 69c59d1

Please sign in to comment.