forked from theheroGAC/Autoplugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.lua
More file actions
58 lines (48 loc) · 1.54 KB
/
Copy pathscript.lua
File metadata and controls
58 lines (48 loc) · 1.54 KB
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
--[[
Autoinstall plugin
Licensed by Creative Commons Attribution-ShareAlike 4.0
http://creativecommons.org/licenses/by-sa/4.0/
Designed By Gdljjrod & DevDavisNunez.
Collaborators: BaltazaR4 & Wzjk.
]]
--Show splash ...
splash.zoom("resources/splash.png")
back = image.load("resources/back.png")
color.loadpalette()
local wstrength = wlan.strength()
if wstrength then
if wstrength > 55 then dofile("git/updater.lua") end
end
-- Loading language file
files.mkdir("ux0:data/AUTOPLUGIN/lang/")
dofile("lang/english_us.txt")
if files.exists("ux0:data/AUTOPLUGIN/lang/"..os.language()..".txt") then
dofile("ux0:data/AUTOPLUGIN/lang/"..os.language()..".txt")
end
if files.exists("lang/"..os.language()..".txt") then
dofile("lang/"..os.language()..".txt")
end
-- Loading font
files.mkdir("ux0:data/AUTOPLUGIN/font/")
if files.exists("ux0:data/AUTOPLUGIN/font/font.ttf") then
fnt = font.load("ux0:data/AUTOPLUGIN/font/font.ttf")
elseif files.exists("ux0:data/AUTOPLUGIN/font/font.pgf") then
fnt = font.load("ux0:data/AUTOPLUGIN/font/font.pgf")
elseif files.exists("ux0:data/AUTOPLUGIN/font/font.pvf") then
fnt = font.load("ux0:data/AUTOPLUGIN/font/font.pvf")
end
if fnt then font.setdefault(fnt) end
if os.access() == 0 then
if back then back:blit(0,0) end
screen.flip()
os.message(STRING_UNSAFE_MODE)
os.exit()
end
dofile("scripts/tai.lua")
dofile("scripts/commons.lua")
dofile("scripts/autoplugin.lua")
dofile("scripts/pmanager.lua")
dofile("scripts/npdrm.lua")
dofile("scripts/pspctrls.lua")
dofile("scripts/sd2vita.lua")
dofile("menu.lua")--Main Cycle