Advertisement
Guest User

Untitled

a guest
Jun 9th, 2025
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.15 KB | None | 0 0
  1.  
  2. #!/usr/bin/env bash
  3.  
  4. #
  5.  
  6. rp_module_id="borked3ds"
  7. rp_module_desc="3DS Emulator borked3ds"
  8. rp_module_help="ROM Extension: .3ds .3dsx .elf .axf .cci ,cxi .app\n\nCopy your 3DS roms to $romdir/3ds"
  9. rp_module_licence="GPL2 https://github.com/Borked3DS/Borked3DS/blob/master/license.txt"
  10. rp_module_section="exp"
  11. rp_module_flags=" "
  12.  
  13. function depends_borked3ds() {
  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 borked3ds")
  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 libssl-dev qt6-l10n-tools qt6-tools-dev qt6-tools-dev-tools qt6-base-dev qt6-base-private-dev libxcb-cursor-dev libvulkan-dev qt6-multimedia-dev libqt6sql6 libqt6core6 libasound2-dev xorg-dev libx11-dev libxext-dev libpipewire-0.3-dev libsndio-dev libfdk-aac-dev ffmpeg libgl-dev libswscale-dev libavformat-dev libavcodec-dev libavdevice-dev libglut3.12 libglut-dev freeglut3-dev mesa-vulkan-drivers libinput-dev)
  21. local depends=(build-essential cmake clang clang-format libc++-dev libsdl2-dev libssl-dev qt6-l10n-tools qt6-tools-dev qt6-tools-dev-tools qt6-base-dev qt6-base-private-dev libxcb-cursor-dev libvulkan-dev qt6-multimedia-dev libqt6sql6 libqt6core6 libasound2-dev xorg-dev libx11-dev libxext-dev libpipewire-0.3-dev libsndio-dev libfdk-aac-dev ffmpeg libgl-dev libswscale-dev libavformat-dev libavcodec-dev libavdevice-dev libglut3.12 libglut-dev freeglut3-dev mesa-vulkan-drivers)
  22.  
  23. getDepends "${depends[@]}"
  24.  
  25. }
  26. # openssl
  27. function sources_borked3ds() {
  28. #gitPullOrClone "$md_build" https://github.com/rtiangha/Borked3DS.git vk-regression
  29. #gitPullOrClone "$md_build" https://github.com/borked3ds/Borked3DS.git
  30. #gitPullOrClone "$md_build" https://github.com/rtiangha/Borked3DS.git vulkan-validation
  31. #gitPullOrClone "$md_build" https://github.com/rtiangha/Borked3DS.git mobile-gpus
  32. #gitPullOrClone "$md_build" https://github.com/rtiangha/Borked3DS.git gpu-revert
  33. #gitPullOrClone "$md_build" https://github.com/rtiangha/Borked3DS.git opengles-dev
  34. #gitPullOrClone "$md_build" https://github.com/rtiangha/Borked3DS.git opengles-dev
  35. #gitPullOrClone "$md_build" https://github.com/rtiangha/Borked3DS.git vk-revert
  36. #gitPullOrClone "$md_build" https://github.com/rtiangha/Borked3DS.git
  37. #gitPullOrClone "$md_build" https://github.com/rtiangha/Borked3DS.git vk-revert-mem-alloc
  38. #gitPullOrClone "$md_build" https://github.com/rtiangha/Borked3DS.git vk-revert-0
  39. #gitPullOrClone "$md_build" https://github.com/rtiangha/Borked3DS.git vk-revert-1
  40. #gitPullOrClone "$md_build" https://github.com/rtiangha/Borked3DS.git vk-revert-2
  41. #gitPullOrClone "$md_build" https://github.com/rtiangha/Borked3DS.git vk-revert-3
  42. #gitPullOrClone "$md_build" https://github.com/Borked3DS/Borked3DS.git
  43. #gitPullOrClone "$md_build" https://github.com/rtiangha/Borked3DS.git opengles-dev-v2
  44. #gitPullOrClone "$md_build" https://github.com/rtiangha/Borked3DS.git fix-gcc12
  45. gitPullOrClone "$md_build" https://github.com/gvx64/Borked3DS-rpi.git
  46.  
  47. }
  48.  
  49. function build_borked3ds() {
  50. cd "$md_build/borked3ds"
  51. mkdir build
  52. cd build
  53. cmake .. -DCMAKE_BUILD_TYPE=Release
  54. cmake --build . -- -j"$(nproc)"
  55. md_ret_require="$md_build/build/bin"
  56.  
  57. }
  58.  
  59. function install_borked3ds() {
  60. md_ret_files=(
  61. 'build/bin/Release/borked3ds'
  62. #'build/bin/Release/borked3ds-cli'
  63. #'build/bin/Release/borked3ds-room'
  64. #'build/bin/Release/tests'
  65.  
  66. ''
  67. )
  68.  
  69. }
  70.  
  71. function configure_borked3ds() {
  72.  
  73. mkRomDir "3ds"
  74. ensureSystemretroconfig "3ds"
  75. local launch_prefix
  76. isPlatform "kms" && launch_prefix="XINIT-WMC:"
  77. addEmulator 0 "$md_id-ui" "3ds" "$launch_prefix$md_inst/borked3ds"
  78. addEmulator 1 "$md_id-roms" "3ds" "$launch_prefix$md_inst/borked3ds %ROM%"
  79. #addEmulator 1 "$md_id-room" "3ds" "$launch_prefix$md_inst/borked3ds-room"
  80. #addEmulator 2 "$md_id-cli" "3ds" "$launch_prefix$md_inst/borked3ds-cli"
  81. #addEmulator 3 "$md_id-tests" "3ds" "$launch_prefix$md_inst/tests"
  82. addSystem "3ds" "3ds" ".3ds .3dsx .elf .axf .cci ,cxi .app"
  83.  
  84.  
  85. }
  86.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement