Author Topic: Launcher linux  (Read 1734 times)

lankou91

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Launcher linux
« on: December 18, 2019, 08:50:03 AM »
bonjour a tous

je viens vers vous car un ami a fais pour moi un launcher linux (Camarade35 sur HFSPlay) qui veux bien partager le dit launcher
en voici le code
Code: [Select]
    #!/bin/bash
#------Modules Linux pour Zspin
#---By camarade35 pour Zspin / HFSPlay
#---------------2/12/2017
#-------------Version 0.0.1
#--evolution vers tout de renseigner pour tous les emulateurs possible

#read RES_X RES_Y <<<$(xdpyinfo | awk -F'[ x]+' '/dimensions:/{print $3, $4}')
#echo $RES_X, $RES_Y

#result=$(echo "scale=2 ; $RES_X/$RES_Y" | bc)
#if [ "$result" = "1.77" ]; then

#display /home/arcade/ZBox/Media/IGS Polygame Master/Images/Wheel/ddpdoj.png;

#else
#display /home/arcade/ZBox/Media/Capcom Play System/Images/Wheel/1941.png.png;




#---Chemin emulateur / Path Emulator
   
mame=/usr/games/mame
mess=/usr/games/mess
retroarch=/snap/bin/retroarch


#---Cores RetroArch

core_path=$HOME/snap/retroarch/60/.config/retroarch/cores/
core_snes=snes9x_libretro.so
core_genesis=genesis_plus_gx_libretro.so


#---Chemin Roms / Path Roms

snes_roms="$HOME/ZBox/Roms/Super Nintendo Entertainment System"
genesis_roms="$HOME/ZBox/Roms/Sega Mega Drive"


#---Extensions Roms

mame_ext=zip
snes_ext=zip
genesis_ext=zip

#---Chemin Dossier Bezel à supprimer & décompresser / Path Delete/Extract Folder Bezel

path_bezels="$HOME/ZBox/Emulators/mame/artwork/$2"

#---Chemin Bezel / Path Overlays

MAME_V="$HOME/ZBox/Emulators/mame/artwork/mame-vertical.zip"
MAME_H="$HOME/ZBox/Emulators/mame/artwork/mame-horizontal.zip"
CPS1_V="$HOME/ZBox/Emulators/mame/artwork/cps-vertical.zip"
CPS1_H="$HOME/ZBox/Emulators/mame/artwork/cps-horizontal.zip"
CPS2_V=""
CPS2_H=""


#else

#display /home/arcade/Images/GENESIS-HFSPLAY.png;



#----Games List Vertical no work actually:


 
#--INFO ZSPIN

#---$1=system_name
#---$2=rom_name

#---COMMANDES EMULATORS

#---MESS
#
#--- SUPER NINTENDO/SUPER FAMICOM ---#
#-- $mess snes -cart "$snesroms/$2.$snesext"; --#
#--- MEGADRIVE/GENESIS ---#
#-- $mess megadriv -cart "$genroms/$2.$genext"; --##

#--RESOLUTION-- xrandr --verbose | grep *current

#---Mame only --- sudo gedit /etc/mame/mame.ini --- set all rompath

#---Exemple
#---rompath                  $HOME/ZBox/Roms/Capcom Play System;$HOME/ZBox/Roms/Capcom Play System 2



#-----------------------LANCEMENT DES JEUX / GAMES LAUNCH----------------------------#
sleep 5

        if [ "$1" = "MAME" ]; then
#---Supression & Décompression du bezel / Delete & Extract Overlays
            rm -rf $path_bezels
            unzip $MAME_H -d $path_bezels
            $mame "$2";
         
#---Bezel vertical pour ces trois jeux / Option vertical to 3 games of CPS
        elif [ "$1" = "Capcom Play System" ] && [ "$2" = "1941" ] || [ "$2" = "mercs" ] || [ "$2" = "varth" ]; then
        #[ "$2" = "1941" ] || [ "$2" = "mercs" ] || [ "$2" = "varth" ]
            rm -rf $path_bezels
            unzip $CPS1_V -d $path_bezels
            $mame "$2";
           
#---Bezel horinzontal pour le reste / horizontal to other games
        elif [ "$1" = "Capcom Play System" ]; then
            rm -rf $path_bezels
            unzip $CPS1_H -d $path_bezels
            $mame "$2";
           
        elif [ "$1" = "Capcom Play System 2" ]; then
            $mame "$2";
         
        elif [ "$1" = "Capcom Play System 3" ]; then
            $mame "$2";
         
        elif [ "$1" = "Cave" ]; then
            $mame "$2";
         
        elif [ "$1" = "SNK Neo Geo" ]; then
            $mame "$2";
         
    elif [ "$1" = "Super Nintendo Entertainment System" ]; then
            retroarch -L $core_path$core_snes "$snes_roms/$2.$snes_ext";
         
    elif [ "$1" = "Sega Mega Drive" ]; then
            retroarch -L $core_path$core_genesis "$genesis_roms/$2.$genesis_ext";
         
        else
          echo "systeme non supporte ($1) (jeu: $2)";

        fi

        exit 0


mais il n’a plus le temps pour l’intégrer à retrofe et je comprends pas quels sont les arguments à mettre pour qu’il fonctionne.
Il a été développé au départ pour un autre frontend qui es Zspin mais le développement de ce frontend en définitivement arrêté.
Il serait dommage de ne pas utiliser ce launcher avec retrofe linux

je pense que ça aiderait beaucoup de personnes.
voir meme de le mettre avec retrofe j’ai demande a camarade35 et il est d accort avec ce principe de partage avec tous ..

cordialement
a plus tard


hello to all

I come to you because a friend has made for me a linux launcher (Comrade35 on HFSPlay) who wants to share the said launcher
here is the code

Code: [Select]
    #!/bin/bash
#------Modules Linux pour Zspin
#---By camarade35 pour Zspin / HFSPlay
#---------------2/12/2017
#-------------Version 0.0.1
#--evolution vers tout de renseigner pour tous les emulateurs possible

#read RES_X RES_Y <<<$(xdpyinfo | awk -F'[ x]+' '/dimensions:/{print $3, $4}')
#echo $RES_X, $RES_Y

#result=$(echo "scale=2 ; $RES_X/$RES_Y" | bc)
#if [ "$result" = "1.77" ]; then

#display /home/arcade/ZBox/Media/IGS Polygame Master/Images/Wheel/ddpdoj.png;

#else
#display /home/arcade/ZBox/Media/Capcom Play System/Images/Wheel/1941.png.png;




#---Chemin emulateur / Path Emulator
   
mame=/usr/games/mame
mess=/usr/games/mess
retroarch=/snap/bin/retroarch


#---Cores RetroArch

core_path=$HOME/snap/retroarch/60/.config/retroarch/cores/
core_snes=snes9x_libretro.so
core_genesis=genesis_plus_gx_libretro.so


#---Chemin Roms / Path Roms

snes_roms="$HOME/ZBox/Roms/Super Nintendo Entertainment System"
genesis_roms="$HOME/ZBox/Roms/Sega Mega Drive"


#---Extensions Roms

mame_ext=zip
snes_ext=zip
genesis_ext=zip

#---Chemin Dossier Bezel à supprimer & décompresser / Path Delete/Extract Folder Bezel

path_bezels="$HOME/ZBox/Emulators/mame/artwork/$2"

#---Chemin Bezel / Path Overlays

MAME_V="$HOME/ZBox/Emulators/mame/artwork/mame-vertical.zip"
MAME_H="$HOME/ZBox/Emulators/mame/artwork/mame-horizontal.zip"
CPS1_V="$HOME/ZBox/Emulators/mame/artwork/cps-vertical.zip"
CPS1_H="$HOME/ZBox/Emulators/mame/artwork/cps-horizontal.zip"
CPS2_V=""
CPS2_H=""


#else

#display /home/arcade/Images/GENESIS-HFSPLAY.png;



#----Games List Vertical no work actually:


 
#--INFO ZSPIN

#---$1=system_name
#---$2=rom_name

#---COMMANDES EMULATORS

#---MESS
#
#--- SUPER NINTENDO/SUPER FAMICOM ---#
#-- $mess snes -cart "$snesroms/$2.$snesext"; --#
#--- MEGADRIVE/GENESIS ---#
#-- $mess megadriv -cart "$genroms/$2.$genext"; --##

#--RESOLUTION-- xrandr --verbose | grep *current

#---Mame only --- sudo gedit /etc/mame/mame.ini --- set all rompath

#---Exemple
#---rompath                  $HOME/ZBox/Roms/Capcom Play System;$HOME/ZBox/Roms/Capcom Play System 2



#-----------------------LANCEMENT DES JEUX / GAMES LAUNCH----------------------------#
sleep 5

        if [ "$1" = "MAME" ]; then
#---Supression & Décompression du bezel / Delete & Extract Overlays
            rm -rf $path_bezels
            unzip $MAME_H -d $path_bezels
            $mame "$2";
         
#---Bezel vertical pour ces trois jeux / Option vertical to 3 games of CPS
        elif [ "$1" = "Capcom Play System" ] && [ "$2" = "1941" ] || [ "$2" = "mercs" ] || [ "$2" = "varth" ]; then
        #[ "$2" = "1941" ] || [ "$2" = "mercs" ] || [ "$2" = "varth" ]
            rm -rf $path_bezels
            unzip $CPS1_V -d $path_bezels
            $mame "$2";
           
#---Bezel horinzontal pour le reste / horizontal to other games
        elif [ "$1" = "Capcom Play System" ]; then
            rm -rf $path_bezels
            unzip $CPS1_H -d $path_bezels
            $mame "$2";
           
        elif [ "$1" = "Capcom Play System 2" ]; then
            $mame "$2";
         
        elif [ "$1" = "Capcom Play System 3" ]; then
            $mame "$2";
         
        elif [ "$1" = "Cave" ]; then
            $mame "$2";
         
        elif [ "$1" = "SNK Neo Geo" ]; then
            $mame "$2";
         
    elif [ "$1" = "Super Nintendo Entertainment System" ]; then
            retroarch -L $core_path$core_snes "$snes_roms/$2.$snes_ext";
         
    elif [ "$1" = "Sega Mega Drive" ]; then
            retroarch -L $core_path$core_genesis "$genesis_roms/$2.$genesis_ext";
         
        else
          echo "systeme non supporte ($1) (jeu: $2)";

        fi

        exit 0



but he doesn't have time to integrate it into retrofe anymore and I don't understand what arguments to use to make it work.
It was initially developed for another frontend which is Zspin but the development of this frontend has been definitively stopped.
It would be a shame not to use this launcher with linux retrofe

I think it would help a lot of people.
see even to put it with retrofe I asked a comrade35 and it is in agreement with this principle of sharing with all...

kind regards
see you later

Translated with www.DeepL.com/Translator (free version)
« Last Edit: December 18, 2019, 11:51:00 AM by lankou91 »