diff --git a/libsnes-build.sh b/libsnes-build.sh index d26e82c2..0c93927a 100755 --- a/libsnes-build.sh +++ b/libsnes-build.sh @@ -50,6 +50,19 @@ build_libsnes_s9x() fi } +build_libsnes_s9x_next() +{ + if [ -d "libsnes-s9x-next" ]; then + echo "=== Building SNES9x-Next ===" + cd libsnes-s9x-next/src/snes9x-next/libsnes + make -j4 || die "Failed to build SNES9x-Next" + cp libsnes.so ../../../libsnes-snes9x-next.so + cd ../../../.. + else + echo "SNES9x-Next not fetched, skipping ..." + fi +} + build_libsnes_genplus() { if [ -d "libsnes-genplus" ]; then @@ -134,6 +147,7 @@ build_libsnes_gambatte() build_libsnes build_libsnes_s9x +build_libsnes_s9x_next build_libsnes_genplus build_libsnes_fba build_libsnes_vba diff --git a/libsnes-fetch.sh b/libsnes-fetch.sh index 53365c11..c42e9ba6 100755 --- a/libsnes-fetch.sh +++ b/libsnes-fetch.sh @@ -53,6 +53,7 @@ fetch_project() fetch_project_bsnes "Themaister/libsnes.git" "libsnes" "libsnes/bSNES" fetch_project "Themaister/snes9x-libsnes.git" "libsnes-s9x" "libsnes/SNES9x" +fetch_project "twinaphex/snes9x-next.git" "libsnes-s9x-next" "libsnes/SNES9x-Next" fetch_project "twinaphex/genesis-next.git" "libsnes-genplus" "libsnes/Genplus GX" fetch_project "twinaphex/fba-next-slim.git" "libsnes-fba" "libsnes/FBA" fetch_project "twinaphex/vba-next.git" "libsnes-vba" "libsnes/VBA" diff --git a/libsnes-install.sh b/libsnes-install.sh index 611ca0b5..7421ed2f 100755 --- a/libsnes-install.sh +++ b/libsnes-install.sh @@ -15,6 +15,7 @@ LIBS="$LIBS libsnes/libsnes-performance.so" LIBS="$LIBS libsnes/libsnes-compat.so" LIBS="$LIBS libsnes/libsnes-accuracy.so" LIBS="$LIBS libsnes-s9x/libsnes-snes9x.so" +LIBS="$LIBS libsnes-s9x-next/libsnes-snes9x-next.so" LIBS="$LIBS libsnes-genplus/libsnes-genplus.so" LIBS="$LIBS libsnes-fba/libsnes-fba.so" LIBS="$LIBS libsnes-vba/libsnes-vba.so"