Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- #
- rp_module_id="lime3ds"
- rp_module_desc="3DS Emulator lime3ds"
- rp_module_help="ROM Extension: .3ds\n\nCopy your 3DS roms to $romdir/3ds"
- rp_module_licence="GPL2 https://github.com/Lime3DS/lime3ds-archive/blob/master/license.txt"
- rp_module_section="exp"
- rp_module_flags=" "
- function depends_lime3ds() {
- if compareVersions $__gcc_version lt 7; then
- md_ret_errors+=("Sorry, you need an OS with gcc 7.0 or newer to compile lime3ds")
- return 1
- fi
- # Additional libraries required for running
- 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)
- getDepends "${depends[@]}"
- }
- function sources_lime3ds() {
- gitPullOrClone "$md_build" https://github.com/Lime3DS/lime3ds-archive.git
- }
- function build_lime3ds() {
- cd "$md_build/lime3ds"
- mkdir build
- cd build
- cmake ../
- cmake --build . -- -j"$(nproc)"
- md_ret_require="$md_build/build/bin"
- }
- function install_lime3ds() {
- md_ret_files=(
- 'build/bin/Release/lime3ds'
- 'build/bin/Release/lime3ds-room'
- ''
- )
- }
- function configure_lime3ds() {
- mkRomDir "3ds"
- ensureSystemretroconfig "3ds"
- local launch_prefix
- isPlatform "kms" && launch_prefix="XINIT-WM:"
- addEmulator 0 "$md_id" "3ds" "$launch_prefix$md_inst/lime3ds"
- #addEmulator 2 "$md_id-qt" "3ds" "$md_inst/lime3ds-room %ROM%"
- addSystem "3ds"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement