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
/
script.lua
100 lines (79 loc) · 2.67 KB
/
script.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
--[[
Autoinstall plugin
Licensed by Creative Commons Attribution-ShareAlike 4.0
http://creativecommons.org/licenses/by-sa/4.0/
Dev: TheHeroeGAC
Designed By Gdljjrod & DevDavisNunez.
Collaborators: BaltazaR4 & Wzjk.
]]
if files.exists("ux0:/app/ONEUPDATE") then
game.delete("ONEUPDATE") -- Exists delete update app
end
--Activamos Paleta de Colores Precargados
color.loadpalette()
--Show splash
splash.zoom("resources/splash.png")
--Imagen de Fondo
back = image.load("resources/back.png")
adr = image.load("resources/adr.png")
psvita = image.load("resources/psvita.png")
--Sprites para Botones
buttonskey = image.load("resources/buttons.png",20,20)
buttonskey2 = image.load("resources/buttons2.png",30,20)
__LANG = os.language()
if __LANG == "ENGLISH_GB" then __LANG = "TURKISH" end
dofile("scripts/language.lua")
dofile("scripts/tai.lua")
dofile("scripts/commons.lua")
dofile("scripts/scroll.lua")
if os.access() == 0 then
if back then back:blit(0,0) end
screen.flip()
os.message(LANGUAGE["STRING_UNSAFE_MODE"])
os.exit()
end
-- Loading font
files.mkdir("ux0:data/AUTOPLUGIN/font/")
if __LANG == "CHINESE_T" or __LANG == "CHINESE_S" or __LANG == "TURKISH" then
if not files.exists("ux0:data/AUTOPLUGIN/font/font.pgf") then
message_wait(CHINESE_FONT_DOWNLOAD)
http.getfile("https://raw.githubusercontent.com/theheroGAC/Autoplugin/master/translations/font/font.pgf", "ux0:data/AUTOPLUGIN/font/font.pgf")
end
end
fnt = font.load("ux0:data/AUTOPLUGIN/font/font.pgf") or font.load("ux0:data/AUTOPLUGIN/font/font.pvf") or font.load("ux0:data/AUTOPLUGIN/font/font.ttf")
if fnt then font.setdefault(fnt) end
--Updater
if not game.exists("AUTOPLUG2") then
dofile("git/updater.lua")
end
--Init load configs
tai.load()
if not files.exists(tai_ux0_path) and not files.exists(tai_ur0_path) then--Copy defect for config.txt
files.copy("resources/config/config.txt", "ur0:tai/")
tai.load()
end
--Backups
tai.sync(__UX0, "ux0:tai/config_backup.txt")
tai.sync(__UR0, "ur0:tai/config_backup.txt")
if back then back:blit(0,0) end
message_wait(LANGUAGE["STRING_BACKUP_CONFIGS"])
os.delay(1500)
--Funciones PSVITA
dofile("scripts/psvita/sd2vita.lua")
dofile("scripts/psvita/plugins.lua")
dofile("scripts/psvita/pmanager.lua")
dofile("scripts/psvita/autoplugin.lua")
dofile("scripts/psvita/onlinep.lua")
dofile("scripts/psvita/menu_psvita.lua")
--Funciones PSP
dofile("scripts/psp/npdrm.lua")
dofile("scripts/psp/pspctrls.lua")
dofile("scripts/psp/pluginspsp.lua")
dofile("scripts/psp/menu_psp.lua")
--Funciones EXTRAS
dofile("scripts/extras/pkgj.lua")
dofile("scripts/extras/customsplash.lua")
dofile("scripts/extras/translate.lua")
dofile("scripts/extras/menu_extras.lua")
--Main Cycle
dofile("menu.lua")