Skip to content

Commit c4ba524

Browse files
authored
[FIX] Installing the Quicklauncher plugin
Fixed error when installing the Quicklauncher plugin
1 parent a63ca1c commit c4ba524

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

AUTOPLUG2/scripts/psvita/info.lua

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -310,14 +310,17 @@ function plugin_info(obj)
310310
if buttonskey then buttonskey:blitsprite(10,515,saccept) end
311311
if obj.path == "QuickMenuReborn.suprx" and obj.configpath then
312312
idx = tai.find(obj.section,obj.path)
313-
314-
315-
if files.exists(tai.gameid[ obj.section ].prx[idx].path) and files.exists(obj.configpath..obj.config) then
316-
screen.print(45,518,LANGUAGE["MENU_REINSTALL_INFO"],1,color.white,color.blue, __ALEFT)
317-
elseif files.exists(tai.gameid[ obj.section ].prx[idx].path) and not files.exists(obj.configpath..obj.config) then
318-
screen.print(45,518,LANGUAGE["MENU_INSTALL_INFO"],1,color.white,color.blue, __ALEFT)
313+
314+
if not idx then screen.print(45,518,LANGUAGE["MENU_INSTALL_INFO"],1,color.white,color.blue, __ALEFT)
319315
else
320-
screen.print(45,518,LANGUAGE["MENU_INSTALL_INFO"],1,color.white,color.blue, __ALEFT)
316+
317+
if files.exists(tai.gameid[ obj.section ].prx[idx].path) and files.exists(obj.configpath..obj.config) then
318+
screen.print(45,518,LANGUAGE["MENU_REINSTALL_INFO"],1,color.white,color.blue, __ALEFT)
319+
elseif files.exists(tai.gameid[ obj.section ].prx[idx].path) and not files.exists(obj.configpath..obj.config) then
320+
screen.print(45,518,LANGUAGE["MENU_INSTALL_INFO"],1,color.white,color.blue, __ALEFT)
321+
else
322+
screen.print(45,518,LANGUAGE["MENU_INSTALL_INFO"],1,color.white,color.blue, __ALEFT)
323+
end
321324
end
322325
else
323326

0 commit comments

Comments
 (0)