[EN COURS] Launcher linux by camarade35
Publié : 18 déc. 2019 - 13:05
bonjour a tous
Je viens vers vous pour voir s’il est possible de faire fonctionne le launcher linux avec retrofe que camarade 35 avez fais pour zspin
pour le faire fonctionne faux crée un fichier launcher.conf
dans exécutable je suppose qu’il faut mettre le fichier launcher_linux.sh le chemin puis ./launcher_linux.sh
mais pour l’argument là je ne sais pas du tous
une âme charitable pour faire fonctionne le bouzin
Je viens vers vous pour voir s’il est possible de faire fonctionne le launcher linux avec retrofe que camarade 35 avez fais pour zspin
Code : Tout sélectionner
#!/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)";
exit 0
dans exécutable je suppose qu’il faut mettre le fichier launcher_linux.sh le chemin puis ./launcher_linux.sh
mais pour l’argument là je ne sais pas du tous
une âme charitable pour faire fonctionne le bouzin