diff --git a/scriptmodules/helpers.sh b/scriptmodules/helpers.sh index 3630f40d26..b25aafacdf 100644 --- a/scriptmodules/helpers.sh +++ b/scriptmodules/helpers.sh @@ -227,10 +227,10 @@ function _mapPackage() { compareVersions "$__os_debian_ver" lt 9 && pkg="libpng12-dev" ;; libsdl1.2-dev) - rp_hasModule "sdl1" && pkg="RP sdl1 $pkg" + rp_isEnabled "sdl1" && pkg="RP sdl1 $pkg" ;; libsdl2-dev) - if rp_hasModule "sdl2"; then + if rp_isEnabled "sdl2"; then # check whether to use our own sdl2 - can be disabled to resolve issues with # mixing custom 64bit sdl2 and os distributed i386 version on multiarch local own_sdl2=1