From 8cf3ffc7de083eae8e7073a083d686374ec52be4 Mon Sep 17 00:00:00 2001 From: Apaczer <94932128+Apaczer@users.noreply.github.com> Date: Mon, 11 Aug 2025 21:25:00 +0200 Subject: [PATCH] add official MIYOO support ./configure --platform=miyoo --- Makefile | 25 +++++++++++++++++++++++++ configure | 12 +++++++++++- frontend/320240/ui_miyoo.h | 29 +++++++++++++++++++++++++++++ 3 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 frontend/320240/ui_miyoo.h diff --git a/Makefile b/Makefile index 1a9576a3..99f30914 100644 --- a/Makefile +++ b/Makefile @@ -404,6 +404,16 @@ frontend/main.o frontend/menu.o: CFLAGS += -include frontend/320240/ui_gp2x.h USE_PLUGIN_LIB = 1 USE_FRONTEND = 1 endif +ifeq "$(PLATFORM)" "miyoo" +HOMEPATH = /mnt +OBJS += frontend/libpicofe/in_sdl.o +OBJS += frontend/libpicofe/linux/in_evdev.o +OBJS += frontend/libpicofe/plat_dummy.o +OBJS += frontend/plat_sdl.o +frontend/main.o frontend/menu.o: CFLAGS += -include frontend/320240/ui_miyoo.h +USE_PLUGIN_LIB = 1 +USE_FRONTEND = 1 +endif ifeq "$(PLATFORM)" "maemo" OBJS += maemo/hildon.o maemo/main.o maemo/maemo_xkb.o frontend/pl_gun_ts.o maemo/%.o: maemo/%.c @@ -578,6 +588,21 @@ rel: pcsx plugins/dfsound/pcsxr_spu_area3.out $(PLUGINS) \ $(PND_MAKE) -p pcsx_rearmed_$(VER).pnd -d out -x out/pcsx.pxml -i frontend/pandora/pcsx.png -c endif +ifeq "$(PLATFORM)" "miyoo" + +rel: pcsx $(PLUGINS) \ + frontend/320240/pcsx26.png \ + frontend/320240/skin \ + readme.txt COPYING + rm -rf out + mkdir -p out/pcsx_rearmed/plugins + cp -r $^ out/pcsx_rearmed/ + -mv out/pcsx_rearmed/*.so out/pcsx_rearmed/plugins/ + mkdir out/pcsx_rearmed/lib/ + mkdir out/pcsx_rearmed/bios/ + cd out && zip -9 -r ../pcsx_rearmed_$(VER)_miyoo.zip * +endif + ifeq "$(PLATFORM)" "caanoo" PLAT_CLEAN = caanoo_clean diff --git a/configure b/configure index 64bb76af..44fdab7f 100755 --- a/configure +++ b/configure @@ -37,7 +37,7 @@ check_define_val() # setting options to "yes" or "no" will make that choice default, # "" means "autodetect". -platform_list="generic pandora maemo caanoo" +platform_list="generic pandora maemo caanoo miyoo" platform="generic" builtin_gpu_list="neon peops unai" dynarec_list="ari64 lightrec none" @@ -139,6 +139,12 @@ set_platform() have_neon_gpu="yes" multithreading="no" ;; + miyoo) + sound_drivers="alsa" + drc_cache_base="yes" + optimize_arm926ej="yes" + multithreading="no" + ;; caanoo) sound_drivers="oss" drc_cache_base="yes" @@ -368,6 +374,10 @@ generic) maemo) CFLAGS="$CFLAGS -DMAEMO -DMAEMO_CHANGES" ;; +miyoo) + need_sdl="yes" + CFLAGS="$CFLAGS -DMIYOO" + ;; esac # header/library presence tests diff --git a/frontend/320240/ui_miyoo.h b/frontend/320240/ui_miyoo.h new file mode 100644 index 00000000..a035a5df --- /dev/null +++ b/frontend/320240/ui_miyoo.h @@ -0,0 +1,29 @@ +/* + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ +#ifndef UI_FEATURES_H +#define UI_FEATURES_H + +#define MENU_SHOW_VARSCALER 0 +#define MENU_SHOW_VOUTMODE 0 +#define MENU_SHOW_SCALER2 0 +#define MENU_SHOW_NUBS_BTNS 0 +#define MENU_SHOW_VIBRATION 1 +#define MENU_SHOW_DEADZONE 0 +#define MENU_SHOW_MINIMIZE 0 +#define MENU_SHOW_FULLSCREEN 1 +#define MENU_SHOW_VOLUME 0 + +#endif -- 2.47.2