I will do that. Just have to try n64 and mame on my own to know that everything works as it should before I make a tutorial

Modérateur : Modérateurs
Code : Tout sélectionner
#!/bin/bash
if [ "$1" == "Nintendo Entertainment System" ]; then
echo "launching retroarch with game $2";
cd /usr/bin;
./retroarch -L /home/ergo/Retro/Cores/nestopia_libretro.so -c /home/ergo/Retro/cfg/nestopia_libretro.cfg "/home/ergo/Retro/Nintendo Entertainment System/$2.nes";
elif [ "$1" == "Nintendo 64" ]; then
echo "launching retroarch with game $2";
cd /usr/bin;
./retroarch -L /home/ergo/Retro/Cores/mupen64plus_libretro.so -c /home/ergo/Retro/cfg/mupen64plus_libretro.cfg "/home/ergo/Retro/Nintendo 64/$2.v64";
./retroarch -L /home/ergo/Retro/Cores/mupen64plus_libretro.so -c /home/ergo/Retro/cfg/mupen64plus_libretro.cfg "/home/ergo/Retro/Nintendo 64/$2.V64";
else
echo "system not supported ($1) (game: $2)";
fi
Code : Tout sélectionner
#!/bin/bash
if [ "$1" == "Nintendo Entertainment System" ]; then
echo "launching retroarch with game $2";
cd /usr/bin;
./retroarch -L /home/ergo/Retro/Cores/nestopia_libretro.so -c /home/ergo/Retro/cfg/nestopia_libretro.cfg "/home/ergo/Retro/Nintendo Entertainment System/$2.nes";
elif [ "$1" == "Nintendo 64" ]; then
echo "launching retroarch with game $2";
cd /usr/bin;
./retroarch -L /home/ergo/Retro/Cores/mupen64plus_libretro.so -c /home/ergo/Retro/cfg/mupen64plus_libretro.cfg "/home/ergo/Retro/Nintendo 64/$2.v64";
./retroarch -L /home/ergo/Retro/Cores/mupen64plus_libretro.so -c /home/ergo/Retro/cfg/mupen64plus_libretro.cfg "/home/ergo/Retro/Nintendo 64/$2.V64";
./retroarch -L /home/ergo/Retro/Cores/mupen64plus_libretro.so -c /home/ergo/Retro/cfg/mupen64plus_libretro.cfg "/home/ergo/Retro/Nintendo 64/$2.z64";
./retroarch -L /home/ergo/Retro/Cores/mupen64plus_libretro.so -c /home/ergo/Retro/cfg/mupen64plus_libretro.cfg "/home/ergo/Retro/Nintendo 64/$2.n64";
elif [ "$1" == "MAME" ]; then
echo "launching retroarch with game $2";
cd /usr/bin;
./retroarch -L /home/ergo/Retro/Cores/mame2014_libretro.so -c /home/ergo/Retro/cfg/mame2014_libretro.cfg "/home/ergo/Retro/MAME/$2.zip";
else
echo "system not supported ($1) (game: $2)";
fi
Code : Tout sélectionner
#!/bin/bash
RARCH="./retroarch -L /home/ergo/Retro/Cores/"
RCONFIG="-c /home/ergo/Retro/cfg/"
ROMS="/home/ergo/Retro/"
if [ "$1" == "Nintendo Entertainment System" ]; then
echo "launching retroarch with game $2";
cd /usr/bin;
${RARCH}nestopia_libretro.so ${RCONFIG}nestopia_libretro.cfg "${ROMS}Nintendo Entertainment System/$2.nes";
elif [ "$1" == "Nintendo 64" ]; then
echo "launching retroarch with game $2";
cd /usr/bin;
${RARCH}mupen64plus_libretro.so ${RCONFIG}mupen64plus_libretro.cfg `ls -1 "${ROMS}Nintendo 64/$2.*" | head -n 1`;
else
echo "system not supported ($1) (game: $2)";
fi
Code : Tout sélectionner
/home/ergo/Retro/Nintendo 64/007 - The World Is Not Enough (USA).*
Code : Tout sélectionner
http://kiwiirc.com/client/irc.freenode.net/##hyperfreespin
Code : Tout sélectionner
#!/bin/bash
RARCH="./retroarch -L /home/ergo/Retro/Cores/"
RCONFIG="-c /home/ergo/Retro/cfg/"
ROMS="/home/ergo/Retro/"
EXT="v64" || "V64" || "n64"
if [ "$1" == "Nintendo Entertainment System" ]; then
echo "launching retroarch with game $2";
cd /usr/bin;
${RARCH}nestopia_libretro.so ${RCONFIG}nestopia_libretro.cfg "${ROMS}Nintendo Entertainment System/$2.nes";
elif [ "$1" == "Nintendo 64" ]; then
echo "launching retroarch with game $2";
echo "${ROMS}Nintendo 64/$2.${EXT}" > logfile.txt
cd /usr/bin;
${RARCH}mupen64plus_libretro.so ${RCONFIG}mupen64plus_libretro.cfg "${ROMS}Nintendo 64/$2.${EXT}";
else
echo "system not supported ($1) (game: $2)";
fi
Code : Tout sélectionner
#!/bin/bash
RARCH="./retroarch -L /home/ergo/Retro/Cores/"
RCONFIG="-c /home/ergo/Retro/cfg/"
ROMS="/home/ergo/Retro/"
if [ "$1" == "Nintendo Entertainment System" ]; then
echo "launching retroarch with game $2";
cd /usr/bin;
${RARCH}nestopia_libretro.so ${RCONFIG}nestopia_libretro.cfg "${ROMS}Nintendo Entertainment System/$2.nes";
elif [ "$1" == "Nintendo 64" ]; then
echo "launching retroarch with game $2";
cd /usr/bin;
${RARCH}mupen64plus_libretro.so ${RCONFIG}mupen64plus_libretro.cfg `ls -1 "${ROMS}Nintendo 64/$2".* | head -n 1`;
else
echo "system not supported ($1) (game: $2)";
fi
Code : Tout sélectionner
/home/ergo/Retro/Nintendo 64/007 - The World Is Not Enough (USA).srm /home/ergo/Retro/Nintendo 64/007 - The World Is Not Enough (USA).v64
Code : Tout sélectionner
[ergo@proxy ZSpin]$ bash +x launcher.sh
system not supported () (game: )
Code : Tout sélectionner
/home/ergo/Retro/Nintendo 64/Yoshi's Story (USA) (En,Ja).n64
Code : Tout sélectionner
#!/bin/bash
RARCH="./retroarch -L /home/ergo/Retro/Cores/"
RCONFIG="-c /home/ergo/Retro/cfg/"
ROMS="/home/ergo/Retro/"
if [ "$1" == "Nintendo Entertainment System" ]; then
echo "launching retroarch with game $2";
cd /usr/bin;
${RARCH}nestopia_libretro.so ${RCONFIG}nestopia_libretro.cfg "${ROMS}Nintendo Entertainment System/$2.nes";
elif [ "$1" == "Nintendo 64" ]; then
echo "launching retroarch with game $2";
cd /usr/bin;
${RARCH}mupen64plus_libretro.so ${RCONFIG}mupen64plus_libretro.cfg \"`ls -1 "${ROMS}Nintendo 64/$2".*64 | head -n 1`\";
else
echo "system not supported ($1) (game: $2)";
fi
Code : Tout sélectionner
[ergo@proxy ZSpin]$ ./zspin
[1595:1118/212811:ERROR:browser_main_loop.cc(185)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
[1622:1118/212812:INFO:renderer_main.cc(200)] Renderer process started
[1595:1118/212813:INFO:CONSOLE(1262)] "settings - init", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (1262)
[1595:1118/212813:INFO:CONSOLE(1365)] "Settings file: /home/ergo/.config/zspin/Settings.json", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (1365)
[1595:1118/212813:INFO:CONSOLE(1374)] "settings - ready", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (1374)
[1595:1118/212813:INFO:CONSOLE(2516)] "NWKeyboard - init", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (2516)
[1595:1118/212813:INFO:CONSOLE(2637)] "NWKeyboard - ready", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (2637)
[1595:1118/212813:INFO:CONSOLE(2063)] "DOMKeyboard - init", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (2063)
[1595:1118/212813:INFO:CONSOLE(2218)] "DOMKeyboard - ready", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (2218)
[1595:1118/212813:INFO:CONSOLE(2249)] "gamepads - init", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (2249)
[1595:1118/212813:INFO:CONSOLE(2485)] "gamepads - ready", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (2485)
[1595:1118/212813:INFO:CONSOLE(1659)] "fs - init", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (1659)
[1595:1118/212813:INFO:CONSOLE(1720)] "qind - ready", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (1720)
[1595:1118/212813:INFO:CONSOLE(1517)] "fs - init", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (1517)
[1595:1118/212813:INFO:CONSOLE(1627)] "fs - ready", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (1627)
[1595:1118/212813:INFO:CONSOLE(1764)] "zip - init", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (1764)
[1595:1118/212813:INFO:CONSOLE(1809)] "zip - ready", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (1809)
[1595:1118/212813:INFO:CONSOLE(1730)] "xml - init", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (1730)
[1595:1118/212813:INFO:CONSOLE(1755)] "xml - ready", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (1755)
[1595:1118/212813:INFO:CONSOLE(342)] "dataServer - init", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (342)
[1595:1118/212814:INFO:CONSOLE(447)] "dataServer - ready", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (447)
[1595:1118/212814:INFO:CONSOLE(1818)] "zspin - init", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (1818)
[1595:1118/212814:INFO:CONSOLE(1908)] "zspin - ready", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (1908)
[1595:1118/212814:INFO:CONSOLE(506)] "inputs - init", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (506)
[1595:1118/212814:INFO:CONSOLE(571)] "inputs - ready", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (571)
NOT SANDBOXED
Vector smash protection is enabled.
[1595:1118/212819:INFO:CONSOLE(954)] "themes - init", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (954)
[1595:1118/212819:INFO:CONSOLE(1101)] "themes - ready", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (1101)
[1595:1118/212819:INFO:CONSOLE(1636)] "ini - init", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (1636)
[1595:1118/212819:INFO:CONSOLE(1650)] "ini - ready", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (1650)
[1595:1118/212819:INFO:CONSOLE(780)] "menus - init", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (780)
[1595:1118/212820:INFO:CONSOLE(854)] "menus - ready", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (854)
[1595:1118/212820:INFO:CONSOLE(216)] "artworks - init", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (216)
[1595:1118/212820:INFO:CONSOLE(310)] "artworks - ready", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (310)
[1673:1118/212821:INFO:renderer_main.cc(200)] Renderer process started
[1673:1118/212823:WARNING:channel.cc(549)] Failed to send message to ack remove remote endpoint (local ID 1, remote ID 1)
[1673:1118/212823:WARNING:channel.cc(315)] RawChannel write error
[1595:1118/212823:INFO:CONSOLE(21138)] "TypeError: Cannot read property 'move' of undefined
at $scope.next (file:///home/ergo/ZSpin/resources/app.asar/js/app.js:642:26)
at Scope.$broadcast (file:///home/ergo/ZSpin/resources/app.asar/js/vendors.js:24311:28)
at _fireInput (file:///home/ergo/ZSpin/resources/app.asar/js/app.js:529:18)
at Scope.$eval (file:///home/ergo/ZSpin/resources/app.asar/js/vendors.js:23992:28)
at Scope.$apply (file:///home/ergo/ZSpin/resources/app.asar/js/vendors.js:24091:23)
at _trigger (file:///home/ergo/ZSpin/resources/app.asar/js/app.js:2126:21)
at _processInput (file:///home/ergo/ZSpin/resources/app.asar/js/app.js:2143:11)
at file:///home/ergo/ZSpin/resources/app.asar/js/app.js:2158:7", source: file:///home/ergo/ZSpin/resources/app.asar/js/vendors.js (21138)
[1595:1118/212951:INFO:CONSOLE(1877)] "Exiting...", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (1877)
[1622:1118/212951:WARNING:channel.cc(549)] Failed to send message to ack remove remote endpoint (local ID 1, remote ID 1)
[1622:1118/212951:WARNING:channel.cc(315)] RawChannel write error
[1595:1118/212951:ERROR:channel.cc(300)] RawChannel read error (connection broken)
[ergo@proxy ZSpin]$ ./zspin +x
[1865:1118/213111:ERROR:browser_main_loop.cc(185)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
[1892:1118/213112:INFO:renderer_main.cc(200)] Renderer process started
[1865:1118/213113:INFO:CONSOLE(1262)] "settings - init", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (1262)
[1865:1118/213113:INFO:CONSOLE(1365)] "Settings file: /home/ergo/.config/zspin/Settings.json", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (1365)
[1865:1118/213113:INFO:CONSOLE(1374)] "settings - ready", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (1374)
[1865:1118/213113:INFO:CONSOLE(2516)] "NWKeyboard - init", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (2516)
[1865:1118/213113:INFO:CONSOLE(2637)] "NWKeyboard - ready", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (2637)
[1865:1118/213113:INFO:CONSOLE(2063)] "DOMKeyboard - init", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (2063)
[1865:1118/213113:INFO:CONSOLE(2218)] "DOMKeyboard - ready", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (2218)
[1865:1118/213113:INFO:CONSOLE(2249)] "gamepads - init", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (2249)
[1865:1118/213113:INFO:CONSOLE(2485)] "gamepads - ready", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (2485)
[1865:1118/213113:INFO:CONSOLE(1659)] "fs - init", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (1659)
[1865:1118/213113:INFO:CONSOLE(1720)] "qind - ready", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (1720)
[1865:1118/213113:INFO:CONSOLE(1517)] "fs - init", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (1517)
[1865:1118/213113:INFO:CONSOLE(1627)] "fs - ready", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (1627)
[1865:1118/213113:INFO:CONSOLE(1764)] "zip - init", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (1764)
[1865:1118/213113:INFO:CONSOLE(1809)] "zip - ready", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (1809)
[1865:1118/213113:INFO:CONSOLE(1730)] "xml - init", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (1730)
[1865:1118/213113:INFO:CONSOLE(1755)] "xml - ready", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (1755)
[1865:1118/213113:INFO:CONSOLE(342)] "dataServer - init", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (342)
[1865:1118/213114:INFO:CONSOLE(447)] "dataServer - ready", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (447)
[1865:1118/213114:INFO:CONSOLE(1818)] "zspin - init", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (1818)
[1865:1118/213114:INFO:CONSOLE(1908)] "zspin - ready", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (1908)
[1865:1118/213114:INFO:CONSOLE(506)] "inputs - init", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (506)
[1865:1118/213114:INFO:CONSOLE(571)] "inputs - ready", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (571)
NOT SANDBOXED
Vector smash protection is enabled.
[1865:1118/213115:INFO:CONSOLE(954)] "themes - init", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (954)
[1865:1118/213116:INFO:CONSOLE(1101)] "themes - ready", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (1101)
[1865:1118/213116:INFO:CONSOLE(1636)] "ini - init", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (1636)
[1865:1118/213116:INFO:CONSOLE(1650)] "ini - ready", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (1650)
[1865:1118/213116:INFO:CONSOLE(780)] "menus - init", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (780)
[1865:1118/213116:INFO:CONSOLE(854)] "menus - ready", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (854)
[1865:1118/213116:INFO:CONSOLE(216)] "artworks - init", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (216)
[1865:1118/213116:INFO:CONSOLE(310)] "artworks - ready", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (310)
[1935:1118/213117:INFO:renderer_main.cc(200)] Renderer process started
[1935:1118/213128:WARNING:channel.cc(549)] Failed to send message to ack remove remote endpoint (local ID 1, remote ID 1)
[1935:1118/213128:WARNING:channel.cc(315)] RawChannel write error
[2013:1118/213202:INFO:renderer_main.cc(200)] Renderer process started
[1865:1118/213202:INFO:CONSOLE(1877)] "Exiting...", source: file:///home/ergo/ZSpin/resources/app.asar/js/app.js (1877)
[2013:1118/213203:WARNING:channel.cc(549)] Failed to send message to ack remove remote endpoint (local ID 1, remote ID 1)
[2013:1118/213203:WARNING:channel.cc(315)] RawChannel write error
[1865:1118/213203:ERROR:channel.cc(300)] RawChannel read error (connection broken)
[1892:1118/213203:WARNING:proxy_message_pipe_endpoint.cc(50)] Failed to write enqueue message to channel
[1892:1118/213203:WARNING:channel.cc(315)] RawChannel write error
Code : Tout sélectionner
#!/bin/bash
RARCH="./retroarch -L /home/ergo/Retro/Cores/"
RCONFIG="-c /home/ergo/Retro/cfg/"
ROMS="/home/ergo/Retro/"
if [ "$1" == "Nintendo Entertainment System" ]; then
echo "launching retroarch with game $2";
cd /usr/bin;
${RARCH}nestopia_libretro.so ${RCONFIG}nestopia_libretro.cfg "${ROMS}Nintendo Entertainment System/$2.nes";
elif [ "$1" == "Nintendo 64" ]; then
echo "launching retroarch with game $2";
cd /usr/bin;
#SET LIST OF EXTENSIONS
EXT="v64 n64 z64 V64";
#LOOP for each extension type
while read $EXT
do
#GRAB RETURN CODE
ret=`${RARCH}mupen64plus_libretro.so ${RCONFIG}mupen64plus_libretro.cfg "${ROMS}$2.$EXT"`;
#IF RETURN = 0
if [ $ret -eq 0 ];
#LOOKS LIKE RETROARCH LAUNCH CORRECTLY, EXITING SCRIPT
break;
fi
done
else
echo "system not supported ($1) (game: $2)";
fi