mirror of
https://github.com/libretro/RetroArch.git
synced 2024-06-02 19:57:24 -04:00
Apple misc (#16462)
* iOS/tvOS: Hide MoltenVK from Core List, again * iOS/tvOS: Don't show certain core management options * apple: Manage macOS/iOS/tvOS from one workspace * iOS/tvOS: update-cores.sh tweaks
This commit is contained in:
parent
fc6d251be9
commit
c0366aba06
|
@ -4545,7 +4545,7 @@ static unsigned menu_displaylist_parse_cores(
|
||||||
#ifdef IOS
|
#ifdef IOS
|
||||||
/* For various reasons on iOS/tvOS, MoltenVK shows up
|
/* For various reasons on iOS/tvOS, MoltenVK shows up
|
||||||
* in the cores directory; exclude it here */
|
* in the cores directory; exclude it here */
|
||||||
if (string_starts_with(path, "libMoltenVK"))
|
if (string_starts_with(path, "MoltenVK"))
|
||||||
continue;
|
continue;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -18842,7 +18842,7 @@ static bool setting_append_list(
|
||||||
general_write_handler,
|
general_write_handler,
|
||||||
general_read_handler,
|
general_read_handler,
|
||||||
SD_FLAG_NONE);
|
SD_FLAG_NONE);
|
||||||
#else
|
#elif !defined(IOS)
|
||||||
CONFIG_BOOL(
|
CONFIG_BOOL(
|
||||||
list, list_info,
|
list, list_info,
|
||||||
&settings->bools.menu_show_quit_retroarch,
|
&settings->bools.menu_show_quit_retroarch,
|
||||||
|
@ -22030,6 +22030,7 @@ static bool setting_append_list(
|
||||||
SD_FLAG_NONE
|
SD_FLAG_NONE
|
||||||
);
|
);
|
||||||
|
|
||||||
|
#ifdef HAVE_UPDATE_CORES
|
||||||
CONFIG_BOOL(
|
CONFIG_BOOL(
|
||||||
list, list_info,
|
list, list_info,
|
||||||
&settings->bools.network_buildbot_show_experimental_cores,
|
&settings->bools.network_buildbot_show_experimental_cores,
|
||||||
|
@ -22084,6 +22085,7 @@ static bool setting_append_list(
|
||||||
(*list)[list_info->index - 1].offset_by = 1;
|
(*list)[list_info->index - 1].offset_by = 1;
|
||||||
menu_settings_list_current_add_range(list, list_info, (*list)[list_info->index - 1].offset_by, 500, 1, true, true);
|
menu_settings_list_current_add_range(list, list_info, (*list)[list_info->index - 1].offset_by, 500, 1, true, true);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
END_SUB_GROUP(list, list_info, parent_group);
|
END_SUB_GROUP(list, list_info, parent_group);
|
||||||
END_GROUP(list, list_info, parent_group);
|
END_GROUP(list, list_info, parent_group);
|
||||||
|
|
|
@ -4,4 +4,7 @@
|
||||||
<FileRef
|
<FileRef
|
||||||
location = "container:RetroArch_Metal.xcodeproj">
|
location = "container:RetroArch_Metal.xcodeproj">
|
||||||
</FileRef>
|
</FileRef>
|
||||||
|
<FileRef
|
||||||
|
location = "group:RetroArch_iOS13.xcodeproj">
|
||||||
|
</FileRef>
|
||||||
</Workspace>
|
</Workspace>
|
||||||
|
|
|
@ -25,6 +25,13 @@ else
|
||||||
APPLE_DIR="${PROJECT_DIR}/pkg/apple"
|
APPLE_DIR="${PROJECT_DIR}/pkg/apple"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$1" = "-n" -o "$1" = "--dry-run" ] ; then
|
||||||
|
DRY_RUN=1
|
||||||
|
shift
|
||||||
|
else
|
||||||
|
DRY_RUN=
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$1" = "tvos" -o "$1" = "--tvos" ] ; then
|
if [ "$1" = "tvos" -o "$1" = "--tvos" ] ; then
|
||||||
CORES_DIR="${APPLE_DIR}/tvOS/modules"
|
CORES_DIR="${APPLE_DIR}/tvOS/modules"
|
||||||
PLATFORM=tvos
|
PLATFORM=tvos
|
||||||
|
@ -45,6 +52,10 @@ NC='\033[0m'
|
||||||
function update_dylib() {
|
function update_dylib() {
|
||||||
dylib=$1
|
dylib=$1
|
||||||
printf "Updating ${YELLOW}$dylib${NC}... "
|
printf "Updating ${YELLOW}$dylib${NC}... "
|
||||||
|
if [ -n "$DRY_RUN" ] ; then
|
||||||
|
echo
|
||||||
|
return
|
||||||
|
fi
|
||||||
if [ -f "$dylib" ] ; then
|
if [ -f "$dylib" ] ; then
|
||||||
mv "$dylib" "$dylib".bak
|
mv "$dylib" "$dylib".bak
|
||||||
fi
|
fi
|
||||||
|
@ -76,126 +87,135 @@ function get_all_cores() {
|
||||||
}
|
}
|
||||||
|
|
||||||
dylibs=()
|
dylibs=()
|
||||||
|
function add_dylib() {
|
||||||
|
if ! [[ "${dylibs[*]}" =~ "${1}" ]] ; then
|
||||||
|
dylibs+=("$1")
|
||||||
|
fi
|
||||||
|
}
|
||||||
function find_dylib() {
|
function find_dylib() {
|
||||||
if [[ "${allcores[*]}" =~ "${1}_libretro_${PLATFORM}.dylib" ]] ; then
|
if [[ "${allcores[*]}" =~ "${1}_libretro_${PLATFORM}.dylib" ]] ; then
|
||||||
dylibs+=("${1}_libretro_${PLATFORM}.dylib")
|
add_dylib "${1}_libretro_${PLATFORM}.dylib"
|
||||||
elif [[ "${allcores[*]}" =~ "${1}_libretro.dylib" ]] ; then
|
elif [[ "${allcores[*]}" =~ "${1}_libretro.dylib" ]] ; then
|
||||||
dylibs+=("${1}_libretro.dylib")
|
add_dylib "${1}_libretro.dylib"
|
||||||
elif [[ "${allcores[*]}" =~ "${1}" ]] ; then
|
elif [[ "${allcores[*]}" =~ "${1}" ]] ; then
|
||||||
dylibs+=("${1}")
|
add_dylib "${1}"
|
||||||
|
else
|
||||||
|
echo "Don't know how to handle '$1'."
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ "$1" = "all" ] ; then
|
get_all_cores
|
||||||
get_all_cores
|
|
||||||
dylibs=(${allcores[*]})
|
if [ -z "$1" ] ; then
|
||||||
elif [ "$1" = "appstore" ] ; then
|
if find . -maxdepth 1 -iname \*_libretro\*.dylib | grep -q ^. ; then
|
||||||
get_all_cores
|
dylibs=( *_libretro*.dylib )
|
||||||
exports=(
|
fi
|
||||||
mupen64plus_next
|
else
|
||||||
#kronos
|
|
||||||
pcsx_rearmed
|
|
||||||
easyrpg
|
|
||||||
dinothawr
|
|
||||||
sameboy
|
|
||||||
mgba
|
|
||||||
gpsp
|
|
||||||
mesen
|
|
||||||
mesen-s
|
|
||||||
genesis_plus_gx
|
|
||||||
genesis_plus_gx_wide
|
|
||||||
fbneo
|
|
||||||
bsnes
|
|
||||||
bsnes_hd_beta
|
|
||||||
#flycast
|
|
||||||
desmume
|
|
||||||
ppsspp
|
|
||||||
stella
|
|
||||||
stella2014
|
|
||||||
snes9x
|
|
||||||
snes9x2005
|
|
||||||
snes9x2010
|
|
||||||
vbam
|
|
||||||
vba_next
|
|
||||||
picodrive
|
|
||||||
np2kai
|
|
||||||
atari800
|
|
||||||
prosystem
|
|
||||||
cap32
|
|
||||||
crocods
|
|
||||||
pocketcdg
|
|
||||||
neocd
|
|
||||||
nestopia
|
|
||||||
fceumm
|
|
||||||
race
|
|
||||||
quicknes
|
|
||||||
smsplus
|
|
||||||
#blastem
|
|
||||||
vice_x128
|
|
||||||
vice_x64
|
|
||||||
vice_x64sc
|
|
||||||
vice_xcbm2
|
|
||||||
vice_xcbm5x0
|
|
||||||
vice_xpet
|
|
||||||
vice_xplus4
|
|
||||||
vice_xscpu64
|
|
||||||
vice_xvic
|
|
||||||
puae
|
|
||||||
mednafen_pce
|
|
||||||
mednafen_pce_fast
|
|
||||||
mednafen_supergrafx
|
|
||||||
mednafen_vb
|
|
||||||
mednafen_wswan
|
|
||||||
mednafen_psx
|
|
||||||
mednafen_psx_hw
|
|
||||||
mednafen_saturn
|
|
||||||
potator
|
|
||||||
vecx
|
|
||||||
tgbdual
|
|
||||||
gw
|
|
||||||
fuse
|
|
||||||
freechaf
|
|
||||||
gambatte
|
|
||||||
freeintv
|
|
||||||
gearsystem
|
|
||||||
gearboy
|
|
||||||
handy
|
|
||||||
tic80
|
|
||||||
wasm4
|
|
||||||
gme
|
|
||||||
tyrquake
|
|
||||||
theodore
|
|
||||||
a5200
|
|
||||||
#play
|
|
||||||
bluemsx
|
|
||||||
px68k
|
|
||||||
xrick
|
|
||||||
ep128emu_core
|
|
||||||
mojozork
|
|
||||||
numero
|
|
||||||
dirksimple
|
|
||||||
scummvm
|
|
||||||
virtualxt
|
|
||||||
geolith
|
|
||||||
vircon32
|
|
||||||
melondsds
|
|
||||||
)
|
|
||||||
for dylib in "${exports[@]}" ; do
|
|
||||||
find_dylib $dylib
|
|
||||||
done
|
|
||||||
elif [ -n "$1" ]; then
|
|
||||||
get_all_cores
|
|
||||||
while [ -n "$1" ] ; do
|
while [ -n "$1" ] ; do
|
||||||
find_dylib "$1"
|
if [ "$1" = "all" ] ; then
|
||||||
|
dylibs=(${allcores[*]})
|
||||||
|
elif [ "$1" = "appstore" ] ; then
|
||||||
|
exports=(
|
||||||
|
mupen64plus_next
|
||||||
|
kronos
|
||||||
|
pcsx_rearmed
|
||||||
|
easyrpg
|
||||||
|
dinothawr
|
||||||
|
sameboy
|
||||||
|
mgba
|
||||||
|
gpsp
|
||||||
|
mesen
|
||||||
|
mesen-s
|
||||||
|
genesis_plus_gx
|
||||||
|
genesis_plus_gx_wide
|
||||||
|
fbneo
|
||||||
|
bsnes
|
||||||
|
bsnes_hd_beta
|
||||||
|
#flycast
|
||||||
|
desmume
|
||||||
|
ppsspp
|
||||||
|
stella
|
||||||
|
stella2014
|
||||||
|
snes9x
|
||||||
|
snes9x2005
|
||||||
|
snes9x2010
|
||||||
|
vbam
|
||||||
|
vba_next
|
||||||
|
picodrive
|
||||||
|
np2kai
|
||||||
|
atari800
|
||||||
|
prosystem
|
||||||
|
cap32
|
||||||
|
crocods
|
||||||
|
pocketcdg
|
||||||
|
neocd
|
||||||
|
nestopia
|
||||||
|
fceumm
|
||||||
|
race
|
||||||
|
quicknes
|
||||||
|
smsplus
|
||||||
|
blastem
|
||||||
|
vice_x128
|
||||||
|
vice_x64
|
||||||
|
vice_x64sc
|
||||||
|
vice_xcbm2
|
||||||
|
vice_xcbm5x0
|
||||||
|
vice_xpet
|
||||||
|
vice_xplus4
|
||||||
|
vice_xscpu64
|
||||||
|
vice_xvic
|
||||||
|
puae
|
||||||
|
mednafen_pce
|
||||||
|
mednafen_pce_fast
|
||||||
|
mednafen_supergrafx
|
||||||
|
mednafen_vb
|
||||||
|
mednafen_wswan
|
||||||
|
mednafen_psx
|
||||||
|
mednafen_psx_hw
|
||||||
|
mednafen_saturn
|
||||||
|
potator
|
||||||
|
vecx
|
||||||
|
tgbdual
|
||||||
|
gw
|
||||||
|
fuse
|
||||||
|
freechaf
|
||||||
|
gambatte
|
||||||
|
freeintv
|
||||||
|
gearsystem
|
||||||
|
gearboy
|
||||||
|
handy
|
||||||
|
tic80
|
||||||
|
wasm4
|
||||||
|
gme
|
||||||
|
tyrquake
|
||||||
|
theodore
|
||||||
|
a5200
|
||||||
|
#play
|
||||||
|
bluemsx
|
||||||
|
px68k
|
||||||
|
xrick
|
||||||
|
ep128emu_core
|
||||||
|
mojozork
|
||||||
|
numero
|
||||||
|
dirksimple
|
||||||
|
scummvm
|
||||||
|
virtualxt
|
||||||
|
geolith
|
||||||
|
vircon32
|
||||||
|
melondsds
|
||||||
|
)
|
||||||
|
for dylib in "${exports[@]}" ; do
|
||||||
|
find_dylib $dylib
|
||||||
|
done
|
||||||
|
else
|
||||||
|
find_dylib "$1"
|
||||||
|
fi
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
elif find . -iname \*_libretro\*.dylib | grep -q ^. ; then
|
|
||||||
dylibs=( *_libretro*.dylib )
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z "${dylibs[*]}" ]] ; then
|
if [[ -z "${dylibs[*]}" ]] ; then
|
||||||
echo Available cores:
|
echo Available cores:
|
||||||
get_all_cores
|
|
||||||
for i in "${allcores[@]}" ; do
|
for i in "${allcores[@]}" ; do
|
||||||
echo $i
|
echo $i
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue