Skip to content

Commit

Permalink
Fix Langs
Browse files Browse the repository at this point in the history
  • Loading branch information
ONElua committed Oct 22, 2022
1 parent 384dcdd commit af8eb04
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions AUTOPLUG2/scripts/language.lua
Expand Up @@ -70,6 +70,7 @@ function load_translates()
end
end
end

end

load_translates()
8 changes: 8 additions & 0 deletions AUTOPLUG2/scripts/psvita/autoplugin.lua
Expand Up @@ -9,6 +9,14 @@
Collaborators: BaltazaR4 & Wzjk.
]]

local res = http.download(string.format("https://raw.githubusercontent.com/%s/%s/master/%s/scripts/psvita/autoplugin.lua", APP_REPO, APP_PROJECT, APP_FOLDER), tmpdir.."autoplugin.lua")
if res.headers and res.headers.status_code == 200 and files.exists(tmpdir.."autoplugin.lua") then
files.move(tmpdir.."autoplugin.lua","scripts/psvita/")
dofile("scripts/psvita/autoplugin.lua")--Official
else
files.delete(tmpdir.."autoplugin.lua")
end

screenshots = "ux0:data/AUTOPLUGIN2/screenshots/"
files.mkdir(screenshots)

Expand Down
2 changes: 1 addition & 1 deletion AUTOPLUG2/scripts/psvita/hdpatch.lua
Expand Up @@ -39,7 +39,7 @@ function HD_Patch()

draw.fillrect(0,0,960,55,color.black:a(100))
draw.offsetgradrect(0,0,960,55,color.black:a(85),color.black:a(135),0x0,0x0,20)
screen.print(480,20,"HD patch",1.2,color.white,0x0,__ACENTER)
screen.print(480,20,LANGUAGE["MENU_PSVITA_HD_PATCH"],1.2,color.white,0x0,__ACENTER)
--screen.print(480,20,LANGUAGE["MENU_TITLE"],1.2,color.white,0x0,__ACENTER)

local y = 145
Expand Down
2 changes: 1 addition & 1 deletion AUTOPLUG2/scripts/settings/lang_online.lua
Expand Up @@ -67,7 +67,7 @@ function update_lang(tb)
__file = Online_Langs[i].id
local res = http.download(string.format("https://raw.githubusercontent.com/%s/%s/master/%s/lang/%s.lua", APP_REPO, APP_PROJECT, APP_FOLDER, Online_Langs[i].id), tmpdir..Online_Langs[i].id..".lua")
--os.message("Online_Langs 2\n"..Online_Langs[i].id)
if res.headers and res.headers.status_code == 200 and files.exists(tmpdir..Online_Langs[j].id..".lua") then
if res.headers and res.headers.status_code == 200 and files.exists(tmpdir..Online_Langs[i].id..".lua") then
table.insert(tmps, { line = i })
__flag = true
files.move(tmpdir..Online_Langs[i].id..".lua","lang/")
Expand Down

0 comments on commit af8eb04

Please sign in to comment.