File tree Expand file tree Collapse file tree 8 files changed +25
-8
lines changed Expand file tree Collapse file tree 8 files changed +25
-8
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ rp_module_help="ROM Extensions: .a52 .bas .bin .car .xex .atr .xfd .dcm .atr.gz
15
15
rp_module_licence=" GPL2 https://raw.githubusercontent.com/atari800/atari800/master/COPYING"
16
16
rp_module_repo=" git https://github.com/atari800/atari800.git ATARI800_5_2_0"
17
17
rp_module_section=" opt"
18
- rp_module_flags=" sdl1 !mali "
18
+ rp_module_flags=" sdl1"
19
19
20
20
function depends_atari800() {
21
21
local depends=(libsdl1.2-dev autoconf automake zlib1g-dev libpng-dev)
@@ -94,6 +94,9 @@ function configure_atari800() {
94
94
# if we are on fkms, use the sdl1 dispmanx backend by default for good performance without using X11/opengl
95
95
isPlatform kms && isPlatform " dispmanx" && _backend_set_atari800 " dispmanx"
96
96
97
+ # when no dispmanx is available, but still on KMS, use 'sdl12-compat' and go through SDL2
98
+ isPlatform " kms" && ! isPlatform " dispmanx" _&& _backend_set_atari800 " sdl12-compat"
99
+
97
100
# this is split out so we can call it via _backend_set_atari800
98
101
_add_emulators_atari800
99
102
addSystem " atari800"
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ rp_module_help="ROM Extensions: .cdt .cpc .dsk\n\nCopy your Amstrad CPC games to
15
15
rp_module_licence=" GPL2 https://raw.githubusercontent.com/KaosOverride/CapriceRPI/master/COPYING.txt"
16
16
rp_module_repo=" git https://github.com/KaosOverride/CapriceRPI.git master"
17
17
rp_module_section=" opt"
18
- rp_module_flags=" sdl1 !all videocore "
18
+ rp_module_flags=" sdl1"
19
19
20
20
function depends_capricerpi() {
21
21
getDepends libsdl1.2-dev libsdl-image1.2-dev libsdl-ttf2.0-dev zlib1g-dev libpng-dev
@@ -44,4 +44,8 @@ function configure_capricerpi() {
44
44
45
45
addEmulator 0 " $md_id " " amstradcpc" " $md_inst /capriceRPI %ROM%"
46
46
addSystem " amstradcpc"
47
+
48
+ [[ $mode == " remove" ]] && return
49
+ # use sdl12-compat backend on KMS
50
+ ! isPlatform " dispmanx" && isPlatform " kms" && setBackend " $md_id " " sdl12-compat"
47
51
}
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ rp_module_help="ROM Extensions: .sna .szx .z80 .tap .tzx .gz .udi .mgt .img .trd
15
15
rp_module_licence=" GPL3 https://raw.githubusercontent.com/rastersoft/fbzx/master/COPYING"
16
16
rp_module_repo=" git https://github.com/rastersoft/fbzx :_get_branch_fbzx"
17
17
rp_module_section=" opt"
18
- rp_module_flags=" sdl1 !mali !kms "
18
+ rp_module_flags=" sdl1"
19
19
20
20
function _get_branch_fbzx() {
21
21
local branch
@@ -55,4 +55,6 @@ function configure_fbzx() {
55
55
56
56
addEmulator 0 " $md_id " " zxspectrum" " pushd $md_inst /share; $md_inst /bin/fbzx -fs %ROM%; popd"
57
57
addSystem " zxspectrum"
58
+
59
+ ! isPlatform " dispmanx" && isPlatform " kms" && setBackend " $md_id " " sdl12-compat"
58
60
}
Original file line number Diff line number Diff line change @@ -63,6 +63,9 @@ function configure_fuse() {
63
63
# default to dispmanx backend
64
64
isPlatform " dispmanx" && _backend_set_fuse " dispmanx"
65
65
66
+ # without dispmanx, but with KMS, then use sdl12-compat
67
+ ! isPlatform " dispmanx" && isPlatform " kms" && _backend_set_fuse " sdl12-compat"
68
+
66
69
local script=" $romdir /zxspectrum/+Start Fuse.sh"
67
70
cat > " $script " << _EOF_
68
71
#!/bin/bash
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ function configure_linapple() {
60
60
done
61
61
62
62
isPlatform " dispmanx" && setBackend " $md_id " " dispmanx"
63
+ ! isPlatform " dispmanx" && isPlatform " kms" && setBackend " $md_id " " sdl12-compat"
63
64
64
65
mkUserDir " $md_conf_root /apple2"
65
66
moveConfigDir " $home /.linapple" " $md_conf_root /apple2"
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ rp_module_help="ROM Extensions: .bin .gg .sms .zip\nCopy your Game Gear roms to
15
15
rp_module_licence=" GPL2 https://raw.githubusercontent.com/RetroPie/osmose-rpi/master/license.txt"
16
16
rp_module_repo=" git https://github.com/RetroPie/osmose-rpi.git master"
17
17
rp_module_section=" opt"
18
- rp_module_flags=" !mali !kms "
18
+ rp_module_flags=" !mali sdl1 "
19
19
20
20
function depends_osmose() {
21
21
getDepends libsdl1.2-dev
@@ -48,4 +48,6 @@ function configure_osmose() {
48
48
addEmulator 0 " $md_id " " mastersystem" " $md_inst /osmose %ROM% -tv -fs"
49
49
addSystem " gamegear"
50
50
addSystem " mastersystem"
51
+
52
+ [[ $mode == " configure" ]] && isPlatform " kms" && setBackend " $md_id " " sdl12-compat"
51
53
}
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ function configure_openbor() {
48
48
49
49
mkRomDir " ports/$md_id "
50
50
isPlatform " dispmanx" && setBackend " $md_id " " dispmanx"
51
+ ! isPlatform " dispmanx" && isPlatform " kms" && setBackend " $md_id " " sdl12-compat"
51
52
52
53
cat > " $md_inst /openbor.sh" << _EOF_
53
54
#!/bin/bash
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ rp_module_help="Install the xrick data.zip to $romdir/ports/xrick/data.zip"
15
15
rp_module_licence=" GPL https://raw.githubusercontent.com/RetroPie/xrick/master/README"
16
16
rp_module_repo=" git https://github.com/RetroPie/xrick.git master"
17
17
rp_module_section=" opt"
18
- rp_module_flags=" sdl1 !mali "
18
+ rp_module_flags=" sdl1"
19
19
20
20
function depends_xrick() {
21
21
getDepends libsdl1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev zlib1g
@@ -43,14 +43,15 @@ function configure_xrick() {
43
43
44
44
[[ " $md_mode " == " remove" ]] && return
45
45
46
+ ln -sf " $romdir /ports/xrick/data.zip" " $md_inst /data.zip"
46
47
# set dispmanx by default on rpi with fkms
47
48
isPlatform " dispmanx" && ! isPlatform " videocore" && setBackend " $md_id " " dispmanx"
48
-
49
- ln -sf " $romdir /ports/xrick/data.zip " " $md_inst /data.zip "
49
+ # on KMS and without dispmanx, use sdl12-compat
50
+ ! isPlatform " dispmanx " && isPlatform " kms " && setBackend " $md_id " " sdl12-compat "
50
51
51
52
local file=" $md_inst /xrick.sh"
52
53
cat > " $file " << _EOF_
53
- #!/bin/bash
54
+ #!/usr/ bin/env bash
54
55
pushd "$md_inst "
55
56
./xrick "\$ @"
56
57
popd
You can’t perform that action at this time.
0 commit comments