Drop AdvanceMame.
This commit is contained in:
parent
6281be0a93
commit
805aaed07a
7 changed files with 0 additions and 289 deletions
|
@ -1,58 +0,0 @@
|
|||
dir_artwork /storage/roms/mame/artwork
|
||||
dir_diff /storage/roms/mame/diff
|
||||
dir_hi /storage/roms/mame/hi
|
||||
dir_image /storage/roms/mame/image
|
||||
dir_inp /storage/roms/mame/inp
|
||||
dir_memcard /storage/roms/mame/memcard
|
||||
dir_nvram /storage/roms/mame/nvram
|
||||
dir_rom /storage/roms/mame
|
||||
dir_sample /storage/roms/mame/samples
|
||||
dir_snap /storage/roms/mame/snap
|
||||
dir_sta /storage/roms/mame/nvram
|
||||
device_video sdl
|
||||
device_keyboard sdl
|
||||
display_magnifysize 320
|
||||
display_resize none
|
||||
display_resizeeffect none
|
||||
misc_quiet yes
|
||||
sound_mode mono
|
||||
device_alsa_device sdl
|
||||
device_color_bgr15 no
|
||||
device_color_bgr8 no
|
||||
record_sound no
|
||||
record_video no
|
||||
sound_latency 0.10
|
||||
sound_normalize no
|
||||
display_vsync no
|
||||
device_video_clock 10-180 / 30-80 / 50-70
|
||||
display_mode 1152x1920x32
|
||||
device_joystick raw
|
||||
input_map[coin1] joystick_button[@DEVICE_GAMEPAD@,button13]
|
||||
input_map[start1] joystick_button[@DEVICE_GAMEPAD@,button14]
|
||||
input_map[ui_cancel] keyboard[0,backspace] or keyboard[1,backspace] or joystick_button[@DEVICE_GAMEPAD@,button16]
|
||||
input_map[ui_configure] keyboard[1,tab] or keyboard[0,tab] or joystick_button[@DEVICE_GAMEPAD@,button15]
|
||||
input_map[p1_button1] joystick_button[@DEVICE_GAMEPAD@,button2]
|
||||
input_map[p1_button2] joystick_button[@DEVICE_GAMEPAD@,button1]
|
||||
input_map[p1_button3] joystick_button[@DEVICE_GAMEPAD@,button3]
|
||||
input_map[p1_button4] joystick_button[@DEVICE_GAMEPAD@,button4]
|
||||
input_map[p1_button5] joystick_button[@DEVICE_GAMEPAD@,button6]
|
||||
input_map[p1_button6] joystick_button[@DEVICE_GAMEPAD@,button5]
|
||||
input_map[p1_button7] joystick_button[@DEVICE_GAMEPAD@,button8]
|
||||
input_map[p1_button8] joystick_button[@DEVICE_GAMEPAD@,button7]
|
||||
input_map[p1_up] joystick_button[@DEVICE_GAMEPAD@,button9] or joystick_digital[@DEVICE_GAMEPAD@,0,1,1]
|
||||
input_map[ui_up] joystick_button[@DEVICE_GAMEPAD@,button9] or joystick_digital[@DEVICE_GAMEPAD@,0,1,1]
|
||||
input_map[p1_down] joystick_button[@DEVICE_GAMEPAD@,button10] or joystick_digital[@DEVICE_GAMEPAD@,0,1,0]
|
||||
input_map[ui_down] joystick_button[@DEVICE_GAMEPAD@,button10] or joystick_digital[@DEVICE_GAMEPAD@,0,1,0]
|
||||
input_map[p1_right] joystick_button[@DEVICE_GAMEPAD@,button12] or joystick_digital[@DEVICE_GAMEPAD@,0,0,0]
|
||||
input_map[ui_right] joystick_button[@DEVICE_GAMEPAD@,button12] or joystick_digital[@DEVICE_GAMEPAD@,0,0,0]
|
||||
input_map[p1_left] joystick_button[@DEVICE_GAMEPAD@,button11] or joystick_digital[@DEVICE_GAMEPAD@,0,0,1]
|
||||
input_map[ui_left] joystick_button[@DEVICE_GAMEPAD@,button11] or joystick_digital[@DEVICE_GAMEPAD@,0,0,1]
|
||||
input_map[ui_select] keyboard[0,enter] or keyboard[1,enter] or joystick_button[@DEVICE_GAMEPAD@,button2]
|
||||
input_map[p1_doubleright_up] joystick_digital[@DEVICE_GAMEPAD@,0,0,0] joystick_digital[@DEVICE_GAMEPAD@,0,1,1]
|
||||
input_map[p1_doubleright_down] joystick_digital[@DEVICE_GAMEPAD@,0,1,0] joystick_digital[@DEVICE_GAMEPAD@,0,0,0]
|
||||
input_map[p1_doubleright_left] joystick_digital[@DEVICE_GAMEPAD@,1,0,1]
|
||||
input_map[p1_doubleright_right] joystick_digital[@DEVICE_GAMEPAD@,1,0,0]
|
||||
input_map[p1_doubleleft_up] joystick_digital[@DEVICE_GAMEPAD@,0,1,1] joystick_digital[@DEVICE_GAMEPAD@,0,0,1]
|
||||
input_map[p1_doubleleft_down] joystick_digital[@DEVICE_GAMEPAD@,0,0,1] joystick_digital[@DEVICE_GAMEPAD@,0,1,0]
|
||||
input_map[p1_doubleleft_left] joystick_digital[@DEVICE_GAMEPAD@,1,0,1]
|
||||
input_map[p1_doubleleft_right] joystick_digital[@DEVICE_GAMEPAD@,1,0,0]
|
|
@ -1,59 +0,0 @@
|
|||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
# Copyright (C) 2019-present Shanti Gilbert (https://github.com/shantigilbert)
|
||||
# Copyright (C) 2022-present Fewtarius
|
||||
|
||||
PKG_NAME="advancemame"
|
||||
PKG_VERSION="384e646234d17b01f89a0e3b38cfdea770d1a1d2"
|
||||
PKG_SHA256="a15293ee964b951ae2f37886796ee1a7b1d14361202985e8e5644a7af170a541"
|
||||
PKG_REV="1"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE="MAME"
|
||||
PKG_SITE="https://github.com/amadvance/advancemame"
|
||||
PKG_URL="https://github.com/amadvance/advancemame/archive/${PKG_VERSION}.tar.gz"
|
||||
PKG_SOURCE_DIR="advancemame-${PKG_VERSION}*"
|
||||
PKG_DEPENDS_TARGET="toolchain freetype slang alsa"
|
||||
PKG_SECTION="emuelec/mod"
|
||||
PKG_SHORTDESC="A MAME and MESS port with an advanced video support for Arcade Monitors, TVs, and PC Monitors "
|
||||
PKG_LONGDESC="A MAME and MESS port with an advanced video support for Arcade Monitors, TVs, and PC Monitors "
|
||||
PKG_IS_ADDON="no"
|
||||
PKG_AUTORECONF="no"
|
||||
PKG_TOOLCHAIN="make"
|
||||
|
||||
pre_configure_target() {
|
||||
export CFLAGS="${CFLAGS} -fcommon"
|
||||
sed -i "s|#include <slang.h>|#include <${SYSROOT_PREFIX}/usr/include/slang.h>|" ${PKG_BUILD}/configure.ac
|
||||
}
|
||||
|
||||
pre_make_target() {
|
||||
VERSION="${PKG_VERSION:0:7}"
|
||||
echo ${VERSION} > ${PKG_BUILD}/.version
|
||||
}
|
||||
|
||||
make_target() {
|
||||
cd ${PKG_BUILD}
|
||||
./autogen.sh
|
||||
./configure --prefix=/usr --datadir=/usr/share/ --datarootdir=/usr/share/ --host=armv8a-libreelec-linux --enable-fb --enable-freetype --with-freetype-prefix=${SYSROOT_PREFIX}/usr/ --enable-slang
|
||||
make mame
|
||||
}
|
||||
|
||||
makeinstall_target() {
|
||||
: not
|
||||
}
|
||||
|
||||
post_make_target() {
|
||||
mkdir -p ${INSTALL}/usr/share/advance
|
||||
if [ -d "${PKG_DIR}/config/${DEVICE}" ]
|
||||
then
|
||||
cp -r ${PKG_DIR}/config/${DEVICE}/advmame.rc ${INSTALL}/usr/share/advance/advmame.rc
|
||||
fi
|
||||
mkdir -p ${INSTALL}/usr/bin
|
||||
cp -r ${PKG_DIR}/sources/start_advmame.sh ${INSTALL}/usr/bin
|
||||
chmod +x ${INSTALL}/usr/bin/start_advmame.sh
|
||||
cp -r ${PKG_BUILD}/obj/mame/linux/blend/advmame ${INSTALL}/usr/bin
|
||||
cp -r ${PKG_BUILD}/support/category.ini ${INSTALL}/usr/share/advance
|
||||
cp -r ${PKG_BUILD}/support/sysinfo.dat ${INSTALL}/usr/share/advance
|
||||
cp -r ${PKG_BUILD}/support/history.dat ${INSTALL}/usr/share/advance
|
||||
cp -r ${PKG_BUILD}/support/hiscore.dat ${INSTALL}/usr/share/advance
|
||||
cp -r ${PKG_BUILD}/support/event.dat ${INSTALL}/usr/share/advance
|
||||
CFLAGS=${OLDCFLAGS}
|
||||
}
|
|
@ -1,20 +0,0 @@
|
|||
--- a/advance/linux/vfb.c 2018-03-10 10:38:17.000000000 -0600
|
||||
+++ b/advance/linux/vfb.c 2018-03-10 13:55:40.977788463 -0600
|
||||
@@ -859,6 +859,7 @@
|
||||
}
|
||||
|
||||
/* set the preferred bit depth */
|
||||
+/*
|
||||
switch (fb_state.varinfo.bits_per_pixel) {
|
||||
case 16:
|
||||
if ((fb_state.flags & VIDEO_DRIVER_FLAGS_MODE_BGR16) != 0)
|
||||
@@ -873,6 +874,9 @@
|
||||
fb_state.flags |= VIDEO_DRIVER_FLAGS_DEFAULT_BGR32;
|
||||
break;
|
||||
}
|
||||
+*/
|
||||
+/* force 16bit for EmuELEC */
|
||||
+ fb_state.flags |= VIDEO_DRIVER_FLAGS_DEFAULT_BGR16;
|
||||
|
||||
log_std(("video:fb: size %ux%u\n", target_size_x(), target_size_y()));
|
||||
log_std(("video:fb: aspect %ux%u\n", target_aspect_x(), target_aspect_y()));
|
|
@ -1,108 +0,0 @@
|
|||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -717,40 +717,28 @@
|
||||
[ac_lib_slang=auto]
|
||||
)
|
||||
if test $ac_lib_slang = auto; then
|
||||
- PKG_CHECK_MODULES([SLANG], [slang], [ac_lib_slang=yes], [ac_lib_slang=no])
|
||||
- if test $ac_lib_slang = yes; then
|
||||
- ac_save_CFLAGS="$CFLAGS"
|
||||
- ac_save_LIBS="$LIBS"
|
||||
- CFLAGS="SLANG_CFLAGS $CFLAGS"
|
||||
- LIBS="$SLANG_LIBS $LIBS"
|
||||
- AC_MSG_CHECKING([for linking slang])
|
||||
- AC_TRY_LINK([
|
||||
- #include <slang.h>
|
||||
- ], [
|
||||
- if (SLang_init_tty(-1, 0, 0) < 0) {
|
||||
- perror("SLang_init_tty");
|
||||
- return 1;
|
||||
- }
|
||||
-
|
||||
- SLang_reset_tty();
|
||||
- return 0;
|
||||
- ],[ac_lib_slang=yes],[ac_lib_slang=no])
|
||||
- AC_MSG_RESULT([$ac_lib_slang])
|
||||
- CFLAGS="$ac_save_CFLAGS"
|
||||
- LIBS="$ac_save_LIBS"
|
||||
- fi
|
||||
+ AC_CHECK_LIB(
|
||||
+ [slang],
|
||||
+ [SLang_init_tty],
|
||||
+ [ac_lib_slang=yes],
|
||||
+ [ac_lib_slang=no],
|
||||
+ []
|
||||
+ )
|
||||
elif test $ac_lib_slang = yes; then
|
||||
- PKG_CHECK_MODULES([SLANG], [slang], [], AC_MSG_ERROR([the slang library is missing]))
|
||||
+ AC_CHECK_LIB(
|
||||
+ [slang],
|
||||
+ [SLang_init_tty],
|
||||
+ [],
|
||||
+ [AC_MSG_ERROR([the sLang library is missing])],
|
||||
+ []
|
||||
+ )
|
||||
fi
|
||||
if test $ac_lib_slang = yes; then
|
||||
AC_CHECK_HEADERS([slang.h slang/slang.h], [break])
|
||||
ac_lib_video="$ac_lib_video slang"
|
||||
ac_lib_text_flag=yes
|
||||
fi
|
||||
-AC_SUBST([SLANGCFLAGS],[$SLANG_CFLAGS])
|
||||
-AC_SUBST([SLANGLIBS],[$SLANG_LIBS])
|
||||
AC_SUBST([CONF_LIB_SLANG],[$ac_lib_slang])
|
||||
-
|
||||
|
||||
dnl Checks for ncurses
|
||||
AC_ARG_ENABLE(
|
||||
@@ -760,36 +748,27 @@
|
||||
[ac_lib_ncurses=auto]
|
||||
)
|
||||
if test $ac_lib_ncurses = auto; then
|
||||
- PKG_CHECK_MODULES([NCURSES], [ncurses], [ac_lib_ncurses=yes], [ac_lib_ncurses=no])
|
||||
- if test $ac_lib_ncurses = yes; then
|
||||
- ac_save_CFLAGS="$CFLAGS"
|
||||
- ac_save_LIBS="$LIBS"
|
||||
- CFLAGS="$NCURSES_CFLAGS $CFLAGS"
|
||||
- LIBS="$NCURSES_LIBS $LIBS"
|
||||
- AC_MSG_CHECKING([for linking ncurses])
|
||||
- AC_TRY_LINK([
|
||||
- #include <ncurses.h>
|
||||
- ], [
|
||||
- initscr();
|
||||
- noecho();
|
||||
- curs_set(FALSE);
|
||||
- endwin();
|
||||
- ],[ac_lib_ncurses=yes],[ac_lib_ncurses=no])
|
||||
- AC_MSG_RESULT([$ac_lib_ncurses])
|
||||
- CFLAGS="$ac_save_CFLAGS"
|
||||
- LIBS="$ac_save_LIBS"
|
||||
- fi
|
||||
+ AC_CHECK_LIB(
|
||||
+ [ncurses],
|
||||
+ [endwin],
|
||||
+ [ac_lib_ncurses=yes],
|
||||
+ [ac_lib_ncurses=no],
|
||||
+ []
|
||||
+ )
|
||||
elif test $ac_lib_ncurses = yes; then
|
||||
- PKG_CHECK_MODULES([NCURSES], [ncurses], [], AC_MSG_ERROR([the ncurses library is missing]))
|
||||
+ AC_CHECK_LIB(
|
||||
+ [ncurses],
|
||||
+ [endwin],
|
||||
+ [],
|
||||
+ [AC_MSG_ERROR([the sLang library is missing])],
|
||||
+ []
|
||||
+ )
|
||||
fi
|
||||
if test $ac_lib_ncurses = yes; then
|
||||
ac_lib_video="$ac_lib_video ncurses"
|
||||
ac_lib_text_flag=yes
|
||||
fi
|
||||
-AC_SUBST([NCURSESCFLAGS],[$NCURSES_CFLAGS])
|
||||
-AC_SUBST([NCURSESLIBS],[$NCURSES_LIBS])
|
||||
AC_SUBST([CONF_LIB_NCURSES],[$ac_lib_ncurses])
|
||||
-
|
||||
|
||||
dnl Checks for freetype
|
||||
AC_ARG_ENABLE(
|
|
@ -1,11 +0,0 @@
|
|||
--- a/advance/linux/target.c
|
||||
+++ b/advance/linux/target.c
|
||||
@@ -1099,7 +1099,7 @@
|
||||
exit(EXIT_FAILURE);
|
||||
} else if (signum == SIGTERM) {
|
||||
fprintf(stderr, "Terminated\n\r");
|
||||
- exit(EXIT_FAILURE);
|
||||
+ exit(0);
|
||||
} else if (signum == SIGALRM) {
|
||||
fprintf(stderr, "Alarm\n\r");
|
||||
exit(EXIT_FAILURE);
|
|
@ -1,28 +0,0 @@
|
|||
#!/bin/bash
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
# Copyright (C) 2021-present 351ELEC (https://github.com/351ELEC)
|
||||
# Copyright (C) 2022-present Fewtarius
|
||||
|
||||
. /etc/profile
|
||||
|
||||
CONFIG_DIR="/storage/.advance"
|
||||
|
||||
if [ ! -d "${CONFIG_DIR}" ]; then
|
||||
mkdir -p ${CONFIG_DIR}
|
||||
cp -rf /usr/share/advance/* ${CONFIG_DIR}/
|
||||
GAMEPAD=$(grep -b4 $(readlink ${DEVICE_CONTROLLER_DEV} | sed "s#^.*/##") /proc/bus/input/devices | awk 'BEGIN {FS="\""}; /Name/ {printf $2}')
|
||||
cat /usr/share/advance/advmame.rc | sed "s#@DEVICE_GAMEPAD@#${GAMEPAD}#g" >${CONFIG_DIR}/advmame.rc
|
||||
fi
|
||||
|
||||
if [[ "$1" = *"roms/arcade"* ]]; then
|
||||
sed -i "s|/roms/mame|/roms/arcade|g" ${CONFIG_DIR}/advmame.rc
|
||||
else
|
||||
sed -i "s|/roms/arcade|/roms/mame|g" ${CONFIG_DIR}/advmame.rc
|
||||
fi
|
||||
|
||||
sed -i '/device_video_modeline/d' ${CONFIG_DIR}/advmame.rc
|
||||
|
||||
ARG=$(echo basename $1 | sed 's/\.[^.]*$//')
|
||||
ARG="$(echo $1 | sed 's=.*/==;s/\.[^.]*$//')"
|
||||
|
||||
SDL_AUDIODRIVER=alsa nice -n -19 /usr/bin/advmame ${ARG} -quiet
|
|
@ -107,11 +107,6 @@
|
|||
<core>fbalpha2019</core>
|
||||
</cores>
|
||||
</emulator>
|
||||
<emulator name="AdvanceMame">
|
||||
<cores>
|
||||
<core>advmame</core>
|
||||
</cores>
|
||||
</emulator>
|
||||
</emulators>
|
||||
</system>
|
||||
<system>
|
||||
|
|
Loading…
Reference in a new issue