mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
rg99 support
This commit is contained in:
parent
95788d2ff2
commit
9ec3b5ac0e
4 changed files with 25 additions and 3 deletions
10
configure
vendored
10
configure
vendored
|
@ -39,7 +39,7 @@ check_define()
|
||||||
# "" means "autodetect".
|
# "" means "autodetect".
|
||||||
|
|
||||||
# TODO this is annoyingly messy. should have platform and device
|
# TODO this is annoyingly messy. should have platform and device
|
||||||
platform_list="generic pandora gp2x wiz caanoo dingux retrofw gcw0 rg350 opendingux miyoo rpi1 rpi2 psp"
|
platform_list="generic pandora gp2x wiz caanoo dingux retrofw gcw0 rg350 opendingux miyoo rpi1 rpi2 psp rg99"
|
||||||
platform="generic"
|
platform="generic"
|
||||||
sound_driver_list="oss alsa sdl"
|
sound_driver_list="oss alsa sdl"
|
||||||
sound_drivers=""
|
sound_drivers=""
|
||||||
|
@ -109,6 +109,14 @@ set_platform()
|
||||||
MFLAGS="-march=mips32r2"
|
MFLAGS="-march=mips32r2"
|
||||||
platform="opendingux"
|
platform="opendingux"
|
||||||
;;
|
;;
|
||||||
|
rg99)
|
||||||
|
# RG99 using opendingux, with Ingenic MIPS JZ4725B
|
||||||
|
sound_drivers="sdl"
|
||||||
|
# mostly based on opendingux for gcw0, save device type as C define.
|
||||||
|
CFLAGS="$CFLAGS -D__`echo $platform | tr '[a-z]' '[A-Z]'`__"
|
||||||
|
MFLAGS="-march=mips32"
|
||||||
|
platform="opendingux"
|
||||||
|
;;
|
||||||
miyoo)
|
miyoo)
|
||||||
# Miyoo BittBoy, PocketGO 1, PowKiddy V90/Q90 with Allwinner F1C100s
|
# Miyoo BittBoy, PocketGO 1, PowKiddy V90/Q90 with Allwinner F1C100s
|
||||||
sound_drivers="sdl"
|
sound_drivers="sdl"
|
||||||
|
|
|
@ -336,7 +336,7 @@ void plat_init(void)
|
||||||
ret = plat_sdl_init();
|
ret = plat_sdl_init();
|
||||||
if (ret != 0)
|
if (ret != 0)
|
||||||
exit(1);
|
exit(1);
|
||||||
#if defined(__RG350__) || defined(__GCW0__) || defined(__OPENDINGUX__)
|
#if defined(__RG350__) || defined(__GCW0__) || defined(__OPENDINGUX__) || defined(__RG99__)
|
||||||
// opendingux on JZ47x0 may falsely report a HW overlay, fix to window
|
// opendingux on JZ47x0 may falsely report a HW overlay, fix to window
|
||||||
plat_target.vout_method = 0;
|
plat_target.vout_method = 0;
|
||||||
#endif
|
#endif
|
||||||
|
@ -372,6 +372,11 @@ void plat_init(void)
|
||||||
in_sdl_init(&in_sdl_platform_data, plat_sdl_event_handler);
|
in_sdl_init(&in_sdl_platform_data, plat_sdl_event_handler);
|
||||||
in_probe();
|
in_probe();
|
||||||
|
|
||||||
|
#if defined(__RG99__)
|
||||||
|
// do not use the default resolution
|
||||||
|
plat_video_set_size(320, 240);
|
||||||
|
#endif
|
||||||
|
|
||||||
bgr_to_uyvy_init();
|
bgr_to_uyvy_init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
9
platform/opendingux/data/default.rg99.desktop
Normal file
9
platform/opendingux/data/default.rg99.desktop
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
[Desktop Entry]
|
||||||
|
Type=Application
|
||||||
|
Name=Picodrive
|
||||||
|
Comment=A megadrive/genesis emulator
|
||||||
|
Exec=PicoDrive %f
|
||||||
|
Icon=megadrive
|
||||||
|
Terminal=false
|
||||||
|
Categories=emulators;
|
||||||
|
MimeType=.md;.smd;.gen;.bin;.sms;.gg;.sg;.cue;.chd;.cso;.iso;.32x;.pco;.zip
|
|
@ -78,7 +78,7 @@ const char * const _in_sdl_key_names[SDLK_LAST] = {
|
||||||
[SDLK_RETURN] = "START",
|
[SDLK_RETURN] = "START",
|
||||||
[SDLK_ESCAPE] = "SELECT",
|
[SDLK_ESCAPE] = "SELECT",
|
||||||
|
|
||||||
#if defined(__RG350__) || defined(__OPENDINGUX__)
|
#if defined(__RG350__) || defined(__OPENDINGUX__) || defined(__RG99__)
|
||||||
[SDLK_HOME] = "POWER",
|
[SDLK_HOME] = "POWER",
|
||||||
|
|
||||||
[SDLK_TAB] = "L1",
|
[SDLK_TAB] = "L1",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue