mirror of
https://github.com/dragoonDorise/EmuDeck.git
synced 2024-05-20 13:17:55 -04:00
np
This commit is contained in:
parent
c9eefbfb2d
commit
fb2aedc067
|
@ -50,7 +50,8 @@ Retroarch_install(){
|
|||
#ApplyInitialSettings
|
||||
RetroArch_init(){
|
||||
|
||||
|
||||
#netPlay
|
||||
setSetting netplayCMD "' '"
|
||||
|
||||
setMSG "RetroArch - HD Texture Packs"
|
||||
|
||||
|
|
|
@ -16,19 +16,10 @@ netplaySetIP(){
|
|||
{
|
||||
ip="$subnet$i"
|
||||
if (echo > /dev/tcp/$ip/$port) >/dev/null 2>&1; then
|
||||
setSetting netplayHost "false"
|
||||
setSetting netplayIP "$ip"
|
||||
setSetting netplayCMD "'-C $ip'"
|
||||
exit
|
||||
fi
|
||||
} &
|
||||
done
|
||||
|
||||
}
|
||||
|
||||
netplaySetHost(){
|
||||
setSetting netplayHost "true"
|
||||
}
|
||||
|
||||
netplaySetClient(){
|
||||
setSetting netplayHost "false"
|
||||
}
|
|
@ -939,17 +939,10 @@ function emulatorInit(){
|
|||
#NetPlay
|
||||
if [ "$emuName" = 'retroarch' ]; then
|
||||
if [ "$netPlay" == "true" ]; then
|
||||
#Looks for devices listening, no listening device? you want to host
|
||||
netplaySetHost
|
||||
#Looks for devices listening
|
||||
setSetting netplayCMD "-H"
|
||||
sleep 2
|
||||
netplaySetIP
|
||||
if [ "$netplayHost" == "true" ]; then
|
||||
setSetting netplayCMD "-H"
|
||||
elif [ "$netplayHost" == "false" ]; then
|
||||
setSetting netplayCMD "'-C $netplayIP'"
|
||||
else
|
||||
setSetting netplayCMD ""
|
||||
fi
|
||||
else
|
||||
setSetting netplayCMD "' '"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue