Advertisement
Guest User

Untitled

a guest
Jun 12th, 2025
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.25 KB | None | 0 0
  1.  
  2. #!/usr/bin/env bash
  3.  
  4. #
  5.  
  6. rp_module_id="borked3ds-rpi"
  7. rp_module_desc="3DS Emulator borked3ds-rpi"
  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/gvx64/Borked3DS-rpi/blob/master/license.txt"
  10. rp_module_section="exp"
  11. rp_module_flags=" "
  12.  
  13. function depends_borked3ds-rpi() {
  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-rpi")
  16. return 1
  17. fi
  18.  
  19. # Additional libraries required for running
  20. local depends=(build-essential cmake robin-map-dev 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. #runCmd git submodule update --init --recursive
  24. getDepends "${depends[@]}"
  25.  
  26. }
  27. # openssl
  28. function sources_borked3ds-rpi() {
  29. #gitPullOrClone "$md_build" https://github.com/rtiangha/Borked3DS.git vk-regression
  30. #gitPullOrClone "$md_build" https://github.com/borked3ds/Borked3DS.git
  31. #gitPullOrClone "$md_build" https://github.com/rtiangha/Borked3DS.git vulkan-validation
  32. #gitPullOrClone "$md_build" https://github.com/rtiangha/Borked3DS.git mobile-gpus
  33. #gitPullOrClone "$md_build" https://github.com/rtiangha/Borked3DS.git gpu-revert
  34. #gitPullOrClone "$md_build" https://github.com/rtiangha/Borked3DS.git opengles-dev
  35. #gitPullOrClone "$md_build" https://github.com/rtiangha/Borked3DS.git opengles-dev
  36. #gitPullOrClone "$md_build" https://github.com/rtiangha/Borked3DS.git vk-revert
  37. #gitPullOrClone "$md_build" https://github.com/rtiangha/Borked3DS.git
  38. #gitPullOrClone "$md_build" https://github.com/rtiangha/Borked3DS.git vk-revert-mem-alloc
  39. #gitPullOrClone "$md_build" https://github.com/rtiangha/Borked3DS.git vk-revert-0
  40. #gitPullOrClone "$md_build" https://github.com/rtiangha/Borked3DS.git vk-revert-1
  41. #gitPullOrClone "$md_build" https://github.com/rtiangha/Borked3DS.git vk-revert-2
  42. #gitPullOrClone "$md_build" https://github.com/rtiangha/Borked3DS.git vk-revert-3
  43. #gitPullOrClone "$md_build" https://github.com/Borked3DS/Borked3DS.git
  44. #gitPullOrClone "$md_build" https://github.com/rtiangha/Borked3DS.git opengles-dev-v2
  45. #gitPullOrClone "$md_build" https://github.com/rtiangha/Borked3DS.git fix-gcc12
  46. gitPullOrClone "$md_build" https://github.com/gvx64/Borked3DS-rpi.git
  47.  
  48. }
  49.  
  50. function build_borked3ds-rpi() {
  51. cd "$md_build/borked3ds-rpi"
  52. mkdir build
  53. cd build
  54. cmake .. -DCMAKE_BUILD_TYPE=Release
  55. cmake --build . -- -j"$(nproc)"
  56. md_ret_require="$md_build/build/bin"
  57.  
  58. }
  59.  
  60. function install_borked3ds-rpi() {
  61. md_ret_files=(
  62. 'build/bin/Release/borked3ds'
  63. #'build/bin/Release/borked3ds-cli'
  64. #'build/bin/Release/borked3ds-room'
  65. #'build/bin/Release/tests'
  66.  
  67. ''
  68. )
  69.  
  70. }
  71.  
  72. function configure_borked3ds-rpi() {
  73.  
  74. mkRomDir "3ds"
  75. ensureSystemretroconfig "3ds"
  76. local launch_prefix
  77. isPlatform "kms" && launch_prefix="XINIT-WMC:"
  78. addEmulator 0 "$md_id-ui" "3ds" "$launch_prefix$md_inst/borked3ds"
  79. addEmulator 1 "$md_id-roms" "3ds" "$launch_prefix$md_inst/borked3ds %ROM%"
  80.  
  81.  
  82. #addEmulator 1 "$md_id-room" "3ds" "$launch_prefix$md_inst/borked3ds-room"
  83. #addEmulator 2 "$md_id-cli" "3ds" "$launch_prefix$md_inst/borked3ds-cli"
  84. #addEmulator 3 "$md_id-tests" "3ds" "$launch_prefix$md_inst/tests"
  85. addSystem "3ds" "3ds" ".3ds .3dsx .elf .axf .cci ,cxi .app"
  86.  
  87.  
  88. }
  89.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement