From fd4374a333804d94402b16651a29385ccc7cd1d8 Mon Sep 17 00:00:00 2001 From: George McMullen <1425046+GeorgeMcMullen@users.noreply.github.com> Date: Wed, 7 Sep 2022 19:52:34 -0700 Subject: [PATCH] On 64-bit OSs compiling Mupen64bit requires more swap On 64-bit OSs compiling Mupen64bit requires more swap Compiling on 64bit requires more memory --- scriptmodules/emulators/mupen64plus.sh | 6 +++++- scriptmodules/libretrocores/lr-mupen64plus-next.sh | 8 ++++++++ scriptmodules/libretrocores/lr-mupen64plus.sh | 6 +++++- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/scriptmodules/emulators/mupen64plus.sh b/scriptmodules/emulators/mupen64plus.sh index a19c67b847..bcfa973b2f 100644 --- a/scriptmodules/emulators/mupen64plus.sh +++ b/scriptmodules/emulators/mupen64plus.sh @@ -152,7 +152,11 @@ function sources_mupen64plus() { } function build_mupen64plus() { - rpSwap on 750 + if isPlatform "64bit"; then + rpSwap on 2048 + else + rpSwap on 750 + fi local dir local params=() diff --git a/scriptmodules/libretrocores/lr-mupen64plus-next.sh b/scriptmodules/libretrocores/lr-mupen64plus-next.sh index c7283c0bbf..21bd1fd013 100644 --- a/scriptmodules/libretrocores/lr-mupen64plus-next.sh +++ b/scriptmodules/libretrocores/lr-mupen64plus-next.sh @@ -53,6 +53,12 @@ function build_lr-mupen64plus-next() { params+=(FORCE_GLES=1) fi + if isPlatform "64bit"; then + rpSwap on 2048 + else + rpSwap on 750 + fi + # use a custom core name to avoid core option name clashes with lr-mupen64plus params+=(CORE_NAME=mupen64plus-next) make "${params[@]}" clean @@ -64,6 +70,8 @@ function build_lr-mupen64plus-next() { make "${params[@]}" fi + rpSwap off + md_ret_require="$md_build/mupen64plus_next_libretro.so" } diff --git a/scriptmodules/libretrocores/lr-mupen64plus.sh b/scriptmodules/libretrocores/lr-mupen64plus.sh index 5a9f3958d9..46e882f9dd 100644 --- a/scriptmodules/libretrocores/lr-mupen64plus.sh +++ b/scriptmodules/libretrocores/lr-mupen64plus.sh @@ -52,7 +52,11 @@ function sources_lr-mupen64plus() { } function build_lr-mupen64plus() { - rpSwap on 750 + if isPlatform "64bit"; then + rpSwap on 2048 + else + rpSwap on 750 + fi local params=() if isPlatform "videocore"; then params+=(platform="$__platform")