mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2026-03-19 10:22:41 +01:00
Compatible with launcher's action.config
This commit is contained in:
@@ -233,9 +233,17 @@ func (self *GPUDriverPage) Click() {
|
||||
if strings.Contains(cur_li.Value,"modesetting") {
|
||||
lockfile,_ := homedir.Expand("~/.lima")
|
||||
UI.System("touch "+lockfile)
|
||||
UI.ArmSystem("sudo mv /usr/lib/xorg/modules/drivers/modesetting_drv.so.lima /usr/lib/xorg/modules/drivers/modesetting_drv.so")
|
||||
UI.ArmSystem("sudo sed -i '/^#.*lima/s/^#//' /etc/ld.so.conf.d/00-arm-linux-gnueabihf.conf")
|
||||
UI.ArmSystem("sudo ldconfig")
|
||||
|
||||
}else {
|
||||
lockfile,_ := homedir.Expand("~/.lima")
|
||||
UI.System("rm "+lockfile)
|
||||
UI.ArmSystem("sudo mv /usr/lib/xorg/modules/drivers/modesetting_drv.so /usr/lib/xorg/modules/drivers/modesetting_drv.so.lima")
|
||||
UI.ArmSystem("sudo sed -i 's/^[^#]*lima/#&/' /etc/ld.so.conf.d/00-arm-linux-gnueabihf.conf")
|
||||
UI.ArmSystem("sudo ldconfig")
|
||||
|
||||
}
|
||||
|
||||
time.BlockDelay(1000)
|
||||
@@ -352,7 +360,7 @@ func (self *GPUDriverPage) Draw() {
|
||||
}
|
||||
|
||||
if self.HWND != nil {
|
||||
surface.Fill(self.HWND, &color.Color{255,255,255,255})
|
||||
surface.Fill(self.HWND, UI.MySkinManager.GiveColor("White"))
|
||||
rect_ := rect.Rect(self.PosX,self.PosY,self.Width,self.Height)
|
||||
surface.Blit(self.HWND,self.CanvasHWND,&rect_,nil)
|
||||
}
|
||||
|
||||
7
Menu/GameShell/20_Retro Games/MAME/action.config
Normal file
7
Menu/GameShell/20_Retro Games/MAME/action.config
Normal file
@@ -0,0 +1,7 @@
|
||||
ROM=/home/cpi/games/MAME
|
||||
ROM_SO=/home/cpi/apps/emulators/mame2003_plus_libretro.so
|
||||
EXT=zip
|
||||
LAUNCHER=retroarch -L
|
||||
TITLE=MAME Roms
|
||||
EXCLUDE=neogeo.zip
|
||||
SO_URL=https://raw.githubusercontent.com/cuu/emulators/master/mame2003_plus_libretro.so.zip
|
||||
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"ROM":"/home/cpi/games/MAME",
|
||||
"ROM_SO":"/home/cpi/apps/emulators/mame2003_plus_libretro.so",
|
||||
"EXT":["zip"],
|
||||
"LAUNCHER":"retroarch -L",
|
||||
"TITLE":"MAME Roms",
|
||||
"EXCLUDE":["neogeo.zip"],
|
||||
"SO_URL":"http://buildbot.libretro.com/nightly/linux/armhf/latest/mame2003_plus_libretro.so.zip"
|
||||
}
|
||||
6
Menu/GameShell/20_Retro Games/MGBA/action.config
Normal file
6
Menu/GameShell/20_Retro Games/MGBA/action.config
Normal file
@@ -0,0 +1,6 @@
|
||||
ROM=/home/cpi/games/MGBA
|
||||
ROM_SO=/home/cpi/apps/emulators/mgba_libretro.so
|
||||
EXT=gb,gbc,gba,gbx
|
||||
LAUNCHER=retroarch -L
|
||||
TITLE=MGBA Roms
|
||||
SO_URL=https://raw.githubusercontent.com/cuu/emulators/master/mgba_libretro.so.zip
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"ROM":"/home/cpi/games/MGBA",
|
||||
"ROM_SO":"/home/cpi/apps/emulators/mgba_libretro.so",
|
||||
"EXT":["gba","gbx"],
|
||||
"LAUNCHER":"retroarch -L",
|
||||
"TITLE":"MGBA Roms",
|
||||
"SO_URL":"http://buildbot.libretro.com/nightly/linux/armhf/latest/mgba_libretro.so.zip"
|
||||
}
|
||||
7
Menu/GameShell/20_Retro Games/NESTOPIA/action.config
Normal file
7
Menu/GameShell/20_Retro Games/NESTOPIA/action.config
Normal file
@@ -0,0 +1,7 @@
|
||||
ROM=/home/cpi/games/NESTOPIA
|
||||
ROM_SO=/home/cpi/apps/emulators/nestopia_libretro.so
|
||||
EXT=zip,nes
|
||||
LAUNCHER=retroarch -L
|
||||
TITLE=NESTOPIA Roms
|
||||
SO_URL=https://raw.githubusercontent.com/cuu/emulators/master/nestopia_libretro.so.zip
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"ROM":"/home/cpi/games/NESTOPIA",
|
||||
"ROM_SO":"/home/cpi/apps/emulators/nestopia_libretro.so",
|
||||
"EXT":["zip"],
|
||||
"LAUNCHER":"retroarch -L",
|
||||
"TITLE":"NESTOPIA Roms",
|
||||
"SO_URL":"http://buildbot.libretro.com/nightly/linux/armhf/latest/nestopia_libretro.so.zip"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user