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
|
||||
/* For various reasons on iOS/tvOS, MoltenVK shows up
|
||||
* in the cores directory; exclude it here */
|
||||
if (string_starts_with(path, "libMoltenVK"))
|
||||
if (string_starts_with(path, "MoltenVK"))
|
||||
continue;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -18842,7 +18842,7 @@ static bool setting_append_list(
|
|||
general_write_handler,
|
||||
general_read_handler,
|
||||
SD_FLAG_NONE);
|
||||
#else
|
||||
#elif !defined(IOS)
|
||||
CONFIG_BOOL(
|
||||
list, list_info,
|
||||
&settings->bools.menu_show_quit_retroarch,
|
||||
|
@ -22030,6 +22030,7 @@ static bool setting_append_list(
|
|||
SD_FLAG_NONE
|
||||
);
|
||||
|
||||
#ifdef HAVE_UPDATE_CORES
|
||||
CONFIG_BOOL(
|
||||
list, list_info,
|
||||
&settings->bools.network_buildbot_show_experimental_cores,
|
||||
|
@ -22084,6 +22085,7 @@ static bool setting_append_list(
|
|||
(*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);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
END_SUB_GROUP(list, list_info, parent_group);
|
||||
END_GROUP(list, list_info, parent_group);
|
||||
|
|
|
@ -4,4 +4,7 @@
|
|||
<FileRef
|
||||
location = "container:RetroArch_Metal.xcodeproj">
|
||||
</FileRef>
|
||||
<FileRef
|
||||
location = "group:RetroArch_iOS13.xcodeproj">
|
||||
</FileRef>
|
||||
</Workspace>
|
||||
|
|
|
@ -25,6 +25,13 @@ else
|
|||
APPLE_DIR="${PROJECT_DIR}/pkg/apple"
|
||||
fi
|
||||
|
||||
if [ "$1" = "-n" -o "$1" = "--dry-run" ] ; then
|
||||
DRY_RUN=1
|
||||
shift
|
||||
else
|
||||
DRY_RUN=
|
||||
fi
|
||||
|
||||
if [ "$1" = "tvos" -o "$1" = "--tvos" ] ; then
|
||||
CORES_DIR="${APPLE_DIR}/tvOS/modules"
|
||||
PLATFORM=tvos
|
||||
|
@ -45,6 +52,10 @@ NC='\033[0m'
|
|||
function update_dylib() {
|
||||
dylib=$1
|
||||
printf "Updating ${YELLOW}$dylib${NC}... "
|
||||
if [ -n "$DRY_RUN" ] ; then
|
||||
echo
|
||||
return
|
||||
fi
|
||||
if [ -f "$dylib" ] ; then
|
||||
mv "$dylib" "$dylib".bak
|
||||
fi
|
||||
|
@ -76,24 +87,37 @@ function get_all_cores() {
|
|||
}
|
||||
|
||||
dylibs=()
|
||||
function add_dylib() {
|
||||
if ! [[ "${dylibs[*]}" =~ "${1}" ]] ; then
|
||||
dylibs+=("$1")
|
||||
fi
|
||||
}
|
||||
function find_dylib() {
|
||||
if [[ "${allcores[*]}" =~ "${1}_libretro_${PLATFORM}.dylib" ]] ; then
|
||||
dylibs+=("${1}_libretro_${PLATFORM}.dylib")
|
||||
add_dylib "${1}_libretro_${PLATFORM}.dylib"
|
||||
elif [[ "${allcores[*]}" =~ "${1}_libretro.dylib" ]] ; then
|
||||
dylibs+=("${1}_libretro.dylib")
|
||||
add_dylib "${1}_libretro.dylib"
|
||||
elif [[ "${allcores[*]}" =~ "${1}" ]] ; then
|
||||
dylibs+=("${1}")
|
||||
add_dylib "${1}"
|
||||
else
|
||||
echo "Don't know how to handle '$1'."
|
||||
fi
|
||||
}
|
||||
|
||||
if [ "$1" = "all" ] ; then
|
||||
get_all_cores
|
||||
get_all_cores
|
||||
|
||||
if [ -z "$1" ] ; then
|
||||
if find . -maxdepth 1 -iname \*_libretro\*.dylib | grep -q ^. ; then
|
||||
dylibs=( *_libretro*.dylib )
|
||||
fi
|
||||
else
|
||||
while [ -n "$1" ] ; do
|
||||
if [ "$1" = "all" ] ; then
|
||||
dylibs=(${allcores[*]})
|
||||
elif [ "$1" = "appstore" ] ; then
|
||||
get_all_cores
|
||||
elif [ "$1" = "appstore" ] ; then
|
||||
exports=(
|
||||
mupen64plus_next
|
||||
#kronos
|
||||
kronos
|
||||
pcsx_rearmed
|
||||
easyrpg
|
||||
dinothawr
|
||||
|
@ -130,7 +154,7 @@ elif [ "$1" = "appstore" ] ; then
|
|||
race
|
||||
quicknes
|
||||
smsplus
|
||||
#blastem
|
||||
blastem
|
||||
vice_x128
|
||||
vice_x64
|
||||
vice_x64sc
|
||||
|
@ -183,19 +207,15 @@ elif [ "$1" = "appstore" ] ; then
|
|||
for dylib in "${exports[@]}" ; do
|
||||
find_dylib $dylib
|
||||
done
|
||||
elif [ -n "$1" ]; then
|
||||
get_all_cores
|
||||
while [ -n "$1" ] ; do
|
||||
else
|
||||
find_dylib "$1"
|
||||
fi
|
||||
shift
|
||||
done
|
||||
elif find . -iname \*_libretro\*.dylib | grep -q ^. ; then
|
||||
dylibs=( *_libretro*.dylib )
|
||||
fi
|
||||
|
||||
if [[ -z "${dylibs[*]}" ]] ; then
|
||||
echo Available cores:
|
||||
get_all_cores
|
||||
for i in "${allcores[@]}" ; do
|
||||
echo $i
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue