This repository has been archived by the owner on Mar 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1edfddd
commit 69c59d1
Showing
7 changed files
with
54 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.