mirror of
https://github.com/libretro/libretro-super
synced 2024-12-29 09:22:43 +00:00
Remove conditional fetching from libretro-fetch.sh
The partially-finished use of can_build_module() had to be pulled from libretro-fetch because how it works has changed a little bit. Don't worry too much though because libretro-super.sh already fetches using the new setup. It's just not quite ready yet.
This commit is contained in:
parent
5e2c7a39b7
commit
d197fdf405
@ -101,13 +101,11 @@ libretro_players="retroarch"
|
||||
libretro_devkits="devkit"
|
||||
|
||||
if [ -n "$1" ]; then
|
||||
fetch_devel=""
|
||||
no_more_args=""
|
||||
while [ -n "$1" ]; do
|
||||
if [[ "$1" = -* && -z "$no_more_args" ]]; then
|
||||
case "$1" in
|
||||
--) no_more_args=1 ;;
|
||||
--devel) fetch_devel=1 ;;
|
||||
--cores) fetch_cores="$libretro_cores" ;;
|
||||
--devkit) fetch_devkits="$libretro_devkits" ;;
|
||||
--players) fetch_players="$libretro_players" ;;
|
||||
@ -124,7 +122,6 @@ if [ -n "$1" ]; then
|
||||
done
|
||||
else
|
||||
# Make libretro-fetch.sh with no args behave traditionally by default
|
||||
fetch_devel=1
|
||||
fetch_cores="$libretro_cores"
|
||||
fetch_players="retroarch"
|
||||
fetch_devkit="devkit"
|
||||
@ -139,7 +136,5 @@ for a in $fetch_devkits; do
|
||||
done
|
||||
|
||||
for a in $fetch_cores; do
|
||||
if [ -n "$fetch_devel" ] || can_build_module "$a"; then
|
||||
libretro_fetch "${a%%:*}"
|
||||
fi
|
||||
libretro_fetch "${a%%:*}"
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user