@@ -15,7 +15,8 @@ files.mkdir(screenshots)
1515function plugins_installation (tb ,sel )
1616
1717 if tb [sel ].path :find (string.lower (" udcd_uvc" ),1 ,true ) and hw .model () == " PlayStation TV" then os .message (LANGUAGE [" INSTALLP_WARNING_UDCD" ])
18- elseif tb [sel ].path == " custom_warning.suprx" and ( version == " 3.67" or version == " 3.68" ) then os .message (LANGUAGE [" INSTALLP_CWARNING_360_365" ])
18+ elseif tb [sel ].path == " custom_warning.suprx" and ( version == " 3.67" or version == " 3.68" or version == " 3.73" ) then os .message (LANGUAGE [" INSTALLP_CWARNING_360_365" ])
19+ elseif tb [sel ].path == " reVita.skprx" and ( version == " 3.67" or version == " 3.68" or version == " 3.73" ) then os .message (LANGUAGE [" INSTALLP_CWARNING_360_365" ])
1920 elseif tb [sel ].path == " pspemu-colour-crunch.skprx" and hw .model () != " Vita Slim" then os .message (LANGUAGE [" INSTALLP_LCDCOLOURSPACECHANGE" ])
2021 else
2122
@@ -82,19 +83,19 @@ function plugins_installation(tb,sel)
8283 end
8384 end
8485
85- if tb [sel ].path == " vitastick.skprx" and not game . exists ( " VITASTICK " ) then
86+ if tb [sel ].path == " vitastick.skprx" then
8687 __file = " vitastick.vpk"
8788 game .install (" resources/plugins/vitastick.vpk" ,false )
88- elseif tb [sel ].path == " ModalVol.suprx" and not game . exists ( " MODALVOLM " ) then
89+ elseif tb [sel ].path == " ModalVol.suprx" then
8990 __file = " VolumeControl.vpk"
9091 game .install (" resources/plugins/VolumeControl.vpk" ,false )
91- elseif tb [sel ].path == " monaural.skprx" and not game . exists ( " AKRK00003 " ) then
92+ elseif tb [sel ].path == " monaural.skprx" then
9293 __file = " MonauralConfig.vpk"
9394 game .install (" resources/plugins/MonauralConfig.vpk" ,false )
94- elseif tb [sel ].path == " pspemu-colour-crunch.skprx" and not game . exists ( " AKRK00006 " ) then
95+ elseif tb [sel ].path == " pspemu-colour-crunch.skprx" then
9596 __file = " lcd-colour-crunch.vpk"
9697 game .install (" resources/plugins/lcd-colour-crunch.vpk" ,false )
97- elseif tb [sel ].path == " VitaGrafix.suprx" and not game . exists ( " VGCF00001 " ) then
98+ elseif tb [sel ].path == " VitaGrafix.suprx" then
9899 files .delete (" tmp" )
99100 if back2 then back2 :blit (0 ,0 ) end
100101 message_wait ()
@@ -234,6 +235,13 @@ function plugins_installation(tb,sel)
234235 files .extract (" resources/plugins/AutoBoot.zip" ," ux0:" )
235236 elseif tb [sel ].path == " ps4linkcontrols.suprx" and not files .exists (" ux0:ps4linkcontrols.txt" ) then -- ps4linkcontrols
236237 files .extract (" resources/plugins/ps4linkcontrols.zip" ," ux0:" )
238+ -- reVita.skprx
239+ elseif tb [sel ].path == " reVita.skprx" then
240+ if os .message (LANGUAGE [" INSTALLP_DESC_REVITA_GYRO" ].. " \n " ,1 ) == 1 then
241+ files .copy (path_plugins .. " reVitaMotion.suprx" , " ur0:tai/" )
242+ tai .put (" main" , path_tai .. " reVitaMotion.suprx" )
243+ change = true
244+ end
237245 end
238246
239247 if tb [sel ].section2 and tb [sel ].section2 :upper () == " KERNEL" then
@@ -270,6 +278,7 @@ function autoplugin()
270278 local xscr1 ,toinstall = 10 ,0
271279 scr .ini ,scr .lim ,scr .sel = 1 ,limit ,1
272280
281+ -- local icon0 = nil
273282 while true do
274283 buttons .read ()
275284 if change then buttons .homepopup (0 ) else buttons .homepopup (1 ) end
@@ -285,7 +294,18 @@ function autoplugin()
285294 local y = 64
286295 for i = scr .ini ,scr .lim do
287296
288- if i == scr .sel then draw .offsetgradrect (3 ,y - 9 ,944 ,31 ,color .shine :a (75 ),color .shine :a (135 ),0x0 ,0x0 ,21 ) end
297+ if i == scr .sel then draw .offsetgradrect (3 ,y - 9 ,944 ,31 ,color .shine :a (75 ),color .shine :a (135 ),0x0 ,0x0 ,21 )
298+
299+ --[[
300+ if not icon0 then
301+ icon0 = image.load(screenshots..tb_cop[scr.sel].id)
302+ if icon0 then
303+ icon0:resize(260,150)
304+ icon0:setfilter(__IMG_FILTER_LINEAR, __IMG_FILTER_LINEAR)
305+ end
306+ end
307+ ]]
308+ end
289309
290310 idx = tai .find (tb_cop [i ].section ,tb_cop [i ].path )
291311 if idx != nil then
@@ -319,6 +339,13 @@ function autoplugin()
319339 draw .fillrect (950 , ybar - 2 + ((hbar - pos_height )/ (scr .maxim - 1 ))* (scr .sel - 1 ), 8 , pos_height , color .new (0 ,255 ,0 ))
320340 -- end
321341
342+ --[[
343+ --Blit icon0
344+ if icon0 then
345+ icon0:blit(650, 45)
346+ end
347+ ]]
348+
322349 if tb_cop [scr .sel ].desc then
323350 if screen .textwidth (tb_cop [scr .sel ].desc ) > 925 then
324351 xscr1 = screen .print (xscr1 , 405 , tb_cop [scr .sel ].desc ,1 ,color .green , 0x0 ,__SLEFT ,935 )
@@ -353,6 +380,7 @@ function autoplugin()
353380
354381 ---- ---------------------- Controls --------------------------
355382
383+ -- if buttons.select then error("FTP") end
356384 if buttons .cancel then
357385 -- Clean
358386 for i = 1 ,scr .maxim do
@@ -374,10 +402,14 @@ function autoplugin()
374402 if buttons .left or buttons .right then xscr1 = 10 end
375403
376404 if buttons .up or buttons .analogly < - 60 then
377- if scr :up () then xscr1 = 10 end
405+ if scr :up () then xscr1 = 10
406+ icon0 = nil
407+ end
378408 end
379409 if buttons .down or buttons .analogly > 60 then
380- if scr :down () then xscr1 = 10 end
410+ if scr :down () then xscr1 = 10
411+ icon0 = nil
412+ end
381413 end
382414
383415 -- Install selected plugins
@@ -438,20 +470,28 @@ function autoplugin()
438470 end
439471 end
440472
441- local readme = nil
442- if tb_cop [scr .sel ].link then readme = http .get (tb_cop [scr .sel ].link ) end
443- os .dialog (readme or LANGUAGE [" PLUGINS_NO_README_ONLINE" ], tb_cop [scr .sel ].name .. " \n " )
444- onNetGetFile = onNetGetFileOld
445-
473+ if tb_cop [scr .sel ].link and not tb_cop [scr .sel ].status then
474+ tb_cop [scr .sel ].readme = http .get (tb_cop [scr .sel ].link )
475+ if not tb_cop [scr .sel ].readme then tb_cop [scr .sel ].status = false else tb_cop [scr .sel ].status = true end
476+ -- os.message("get readme")
477+ end
478+
479+ os .dialog (tb_cop [scr .sel ].readme or LANGUAGE [" PLUGINS_NO_README_ONLINE" ], tb_cop [scr .sel ].name .. " \n " )
480+
446481 if img then
447482 if vbuff then vbuff :blit (0 ,0 ) elseif back2 then back2 :blit (0 ,0 ) end
483+ img :setfilter (__IMG_FILTER_LINEAR , __IMG_FILTER_LINEAR )
448484 img :scale (85 )
449485 img :center ()
450486 img :blit (480 ,272 )
451487 screen .flip ()
452488 buttons .waitforkey ()
489+ os .delay (150 )
453490 end
491+
454492 img ,vbuff = nil ,nil
493+ onNetGetFile = onNetGetFileOld
494+ os .delay (75 )
455495
456496 end
457497
0 commit comments