Advertisement
Guest User

Untitled

a guest
Jan 15th, 2025
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1.  
  2. #!/usr/bin/env bash
  3.  
  4. #
  5.  
  6. rp_module_id="lime3ds"
  7. rp_module_desc="3DS Emulator lime3ds"
  8. rp_module_help="ROM Extension: .3ds\n\nCopy your 3DS roms to $romdir/3ds"
  9. rp_module_licence="GPL2 https://github.com/Lime3DS/lime3ds-archive/blob/master/license.txt"
  10. rp_module_section="exp"
  11. rp_module_flags=" "
  12.  
  13. function depends_lime3ds() {
  14. if compareVersions $__gcc_version lt 7; then
  15. md_ret_errors+=("Sorry, you need an OS with gcc 7.0 or newer to compile lime3ds")
  16. return 1
  17. fi
  18.  
  19. # Additional libraries required for running
  20. local depends=(build-essential cmake clang clang-format libc++-dev libsdl2-dev qtbase5-dev libqt5opengl5-dev qtmultimedia5-dev libfdk-aac-dev ffmpeg libswscale-dev libavformat-dev libavcodec-dev libavdevice-dev)
  21. getDepends "${depends[@]}"
  22. }
  23.  
  24. function sources_lime3ds() {
  25. gitPullOrClone "$md_build" https://github.com/Lime3DS/lime3ds-archive.git
  26. }
  27.  
  28. function build_lime3ds() {
  29. cd "$md_build/lime3ds"
  30. mkdir build
  31. cd build
  32. cmake ../
  33. cmake --build . -- -j"$(nproc)"
  34. md_ret_require="$md_build/build/bin"
  35.  
  36. }
  37.  
  38. function install_lime3ds() {
  39. md_ret_files=(
  40. 'build/bin/Release/lime3ds'
  41. 'build/bin/Release/lime3ds-room'
  42. ''
  43. )
  44.  
  45. }
  46.  
  47. function configure_lime3ds() {
  48.  
  49. mkRomDir "3ds"
  50. ensureSystemretroconfig "3ds"
  51. local launch_prefix
  52. isPlatform "kms" && launch_prefix="XINIT-WM:"
  53.  
  54. addEmulator 0 "$md_id" "3ds" "$launch_prefix$md_inst/lime3ds"
  55. #addEmulator 2 "$md_id-qt" "3ds" "$md_inst/lime3ds-room %ROM%"
  56.  
  57. addSystem "3ds"
  58.  
  59.  
  60. }
  61.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement