Advertisement
Guest User

Untitled

a guest
Mar 5th, 2024
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. # This file is part of RetroPie-Extra, a supplement to RetroPie.
  4. # For more information, please visit:
  5. #
  6. # https://github.com/RetroPie/RetroPie-Setup
  7. # https://github.com/Exarkuniv/RetroPie-Extra
  8. #
  9. # See the LICENSE file distributed with this source and at
  10. # https://raw.githubusercontent.com/Exarkuniv/RetroPie-Extra/master/LICENSE
  11. #
  12.  
  13. rp_module_id="lr-citra"
  14. rp_module_desc="3DS emulator - Citra port for libretro"
  15. rp_module_help="OpenGL >= 3.3 is required.\n\nROM Extensions: .3ds .3dsx .elf .axf .cci .cxi .app\n\nCopy your Nintendo 3DS roms to $romdir/3ds"
  16. rp_module_licence="GPL2 https://raw.githubusercontent.com/libretro/citra/master/license.txt"
  17. rp_module_repo="git https://github.com/libretro/citra.git master"
  18. rp_module_section="exp"
  19. rp_module_flags=" "
  20.  
  21. function depends_lr-citra() {
  22. getDepends cmake
  23. }
  24.  
  25. function sources_lr-citra() {
  26. gitPullOrClone
  27. }
  28.  
  29. function build_lr-citra() {
  30. mkdir build && cd build
  31. cmake .. -DENABLE_LIBRETRO=1 -DLIBRETRO_STATIC=1 -DENABLE_SDL2=0 -DENABLE_QT=0 -DCMAKE_BUILD_TYPE="Release" -DENABLE_WEB_SERVICE=0
  32. make > output.txt 2> errors.txt
  33. md_ret_require="$md_build/build/src/citra_libretro/citra_libretro.so"
  34. }
  35.  
  36. function install_lr-citra() {
  37. md_ret_files=(
  38. 'build/src/citra_libretro/citra_libretro.so'
  39. )
  40. }
  41.  
  42. function configure_lr-citra() {
  43. mkRomDir "3ds"
  44. ensureSystemretroconfig "3ds"
  45.  
  46. addEmulator 1 "$md_id" "3ds" "$md_inst/citra_libretro.so"
  47. addSystem "3ds"
  48. }
  49.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement