/
lr-dolphin.sh
54 lines (44 loc) · 1.5 KB
/
lr-dolphin.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/env bash
# This file is part of The RetroPie Project
#
# The RetroPie Project is the legal property of its developers, whose names are
# too numerous to list here. Please refer to the COPYRIGHT.md file distributed with this source.
#
# See the LICENSE.md file at the top-level directory of this distribution and
# at https://raw.githubusercontent.com/RetroPie/RetroPie-Setup/master/LICENSE.md
#
rp_module_id="lr-dolphin"
rp_module_desc="Gamecube/Wii emulator - Dolphin port for libretro"
rp_module_help="ROM Extensions: .gcm .iso .wbfs .ciso .gcz\n\nCopy your gamecube roms to $romdir/gc and Wii roms to $romdir/wii"
rp_module_licence="GPL2 https://raw.githubusercontent.com/libretro/dolphin/master/license.txt"
rp_module_section="exp"
rp_module_flags="!all 64bit"
function depends_lr-dolphin() {
depends_dolphin
}
function sources_lr-dolphin() {
gitPullOrClone "$md_build" https://github.com/libretro/dolphin
}
function build_lr-dolphin() {
mkdir build
cd build
cmake .. -DLIBRETRO=ON -DLIBRETRO_STATIC=1
make clean
make
md_ret_require="$md_build/build/dolphin_libretro.so"
}
function install_lr-dolphin() {
md_ret_files=(
'build/dolphin_libretro.so'
)
}
function configure_lr-dolphin() {
mkRomDir "gc"
mkRomDir "wii"
ensureSystemretroconfig "gc"
ensureSystemretroconfig "wii"
addEmulator 1 "$md_id" "gc" "$md_inst/dolphin_libretro.so"
addEmulator 1 "$md_id" "wii" "$md_inst/dolphin_libretro.so"
addSystem "gc"
addSystem "wii"
}