Skip to content

Commit 0cfd1fb

Browse files
authored
Merge pull request #204 from retropieuser/patch-3
Add WASM-4 Emulator
2 parents 64ac746 + a3ea0c8 commit 0cfd1fb

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#!/usr/bin/env bash
2+
3+
# This file is part of The RetroPie Project
4+
#
5+
# The RetroPie Project is the legal property of its developers, whose names are
6+
# too numerous to list here. Please refer to the COPYRIGHT.md file distributed with this source.
7+
#
8+
# See the LICENSE.md file at the top-level directory of this distribution and
9+
# at https://raw.githubusercontent.com/RetroPie/RetroPie-Setup/master/LICENSE.md
10+
#
11+
12+
rp_module_id="lr-wasm4"
13+
rp_module_desc="WebAssembly (WASM-4)"
14+
rp_module_help="ROM Extensions: .wasm .WASM"
15+
rp_module_repo="git https://github.com/aduros/wasm4.git main"
16+
rp_module_section="exp"
17+
18+
function sources_lr-wasm4() {
19+
gitPullOrClone
20+
}
21+
22+
function build_lr-wasm4() {
23+
cd runtimes/native
24+
cmake -B build
25+
cmake --build build
26+
}
27+
28+
function install_lr-wasm4() {
29+
md_ret_files=(
30+
'runtimes/native/build/wasm4_libretro.so'
31+
)
32+
}
33+
34+
function configure_lr-wasm4() {
35+
mkRomDir "wasm4"
36+
37+
mkUserDir "$md_conf_root/wasm4"
38+
39+
addEmulator 1 "$md_id" "wasm4" "$md_inst/wasm4_libretro.so"
40+
addSystem "wasm4" "Wasm4" ".zip .ZIP .wasm .WASM"
41+
}

0 commit comments

Comments
 (0)