Skip to content

Commit 35e6f35

Browse files
committed
replaced engine
this is a updated engine that supports higher screen resolutions
1 parent ecf5043 commit 35e6f35

File tree

2 files changed

+35
-39
lines changed

2 files changed

+35
-39
lines changed

scriptmodules/ports/rott-darkwar.sh

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,50 +12,49 @@
1212

1313

1414
rp_module_id="rott-darkwar"
15-
rp_module_desc="rott-darkwar - Rise of the Triad - Dark War"
16-
rp_module_licence="GPL2 https://raw.githubusercontent.com/zerojay/RoTT/master/COPYING"
17-
rp_module_help="Please add your full version ROTT files to $romdir/ports/rott-darkwar/ to play."
15+
rp_module_desc="ROTT - Rise of the Triad - Dark War"
16+
rp_module_licence="GPL2 https://raw.githubusercontent.com/LTCHIPS/rottexpr/master/LICENSE.DOC"
17+
rp_module_help="Please add your full version ROTT files to $romdir/ports/rott/ to play."
18+
rp_module_repo="git https://github.com/LTCHIPS/rottexpr.git master"
1819
rp_module_section="exp"
1920
rp_module_flags="!mali !x86"
2021

2122
function depends_rott-darkwar() {
22-
getDepends libsdl1.2-dev libsdl-mixer1.2-dev automake
23+
getDepends libsdl2-dev libsdl2-mixer-dev fluidsynth libfluidsynth1 libfluidsynth-dev fluid-soundfont-gs fluid-soundfont-gm
24+
2325
}
2426

2527
function sources_rott-darkwar() {
26-
gitPullOrClone "$md_build" https://github.com/zerojay/RoTT
28+
gitPullOrClone
2729
}
2830

2931
function build_rott-darkwar() {
30-
sed -i 's/SUPERROTT ?= 1/SUPERROTT ?= 0/g' "$md_build/rott/Makefile"
31-
make clean
32-
make rott-darkwar
33-
make rott-darkwar
34-
make rott-darkwar
32+
cd src
33+
make rott
3534
md_ret_require=(
36-
"$md_build/rott-darkwar"
35+
"$md_build/src/rott"
3736
)
3837
}
3938

4039
function install_rott-darkwar() {
4140
md_ret_files=(
42-
'rott-darkwar'
41+
'src/rott'
4342
)
4443
}
4544

4645
function configure_rott-darkwar() {
4746
local script="$md_inst/$md_id.sh"
4847
mkRomDir "ports"
49-
mkRomDir "ports/$md_id"
48+
mkRomDir "ports/rott"
5049
moveConfigDir "$home/.rott" "$md_conf_root/rott"
5150
#create buffer script for launch
5251
cat > "$script" << _EOF_
5352
#!/bin/bash
54-
pushd "$romdir/ports/rott-darkwar"
55-
"$md_inst/rott-darkwar" \$*
53+
pushd "$romdir/ports/rott"
54+
"$md_inst/rott" \$*
5655
popd
5756
_EOF_
5857

5958
chmod +x "$script"
60-
addPort "$md_id" "rott-darkwar" "Rise Of The Triad - Dark War" "XINIT:$script"
59+
addPort "$md_id" "rott-darkwar" "Rise Of The Triad - Dark War" "$script"
6160
}

scriptmodules/ports/rott-huntbgin.sh

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,65 +11,62 @@
1111
#
1212

1313
rp_module_id="rott-huntbgin"
14-
rp_module_desc="rott - Rise of the Triad - The Hunt Begins (Shareware)"
15-
rp_module_licence="GPL2 https://raw.githubusercontent.com/zerojay/RoTT/master/COPYING"
16-
rp_module_help="Please add your shareware version ROTT files to $romdir/ports/rott-huntbgin/huntbgin to play."
17-
rp_module_repo="git https://github.com/zerojay/RoTT master"
14+
rp_module_desc="ROTT - Rise of the Triad - The Hunt Begins (Shareware)"
15+
rp_module_licence="GPL2 https://raw.githubusercontent.com/LTCHIPS/rottexpr/master/LICENSE.DOC"
16+
rp_module_help=
17+
rp_module_repo="git https://github.com/LTCHIPS/rottexpr.git master"
1818
rp_module_section="exp"
1919
rp_module_flags="!mali !x86"
2020

2121
function depends_rott-huntbgin() {
22-
getDepends libsdl1.2-dev libsdl-mixer1.2-dev automake autoconf unzip xorg
22+
getDepends libsdl2-dev libsdl2-mixer-dev fluidsynth libfluidsynth1 libfluidsynth-dev fluid-soundfont-gs fluid-soundfont-gm
2323
}
2424

2525
function sources_rott-huntbgin() {
2626
gitPullOrClone
2727
}
2828

2929
function build_rott-huntbgin() {
30-
sed -i 's/SHAREWARE ?= 0/SHAREWARE ?= 1/g' "$md_build/rott/Makefile"
31-
sed -i 's/SUPERROTT ?= 1/SUPERROTT ?= 0/g' "$md_build/rott/Makefile"
32-
make clean
33-
make rott-huntbgin
34-
make rott-huntbgin
35-
make rott-huntbgin
30+
sed -i 's/SHAREWARE ?= 0/SHAREWARE ?= 1/g' "$md_build/src/Makefile"
31+
cd src
32+
make rott
3633
md_ret_require=(
37-
"$md_build/rott-huntbgin"
34+
"$md_build/src/rott"
3835
)
3936
}
4037

4138
function install_rott-huntbgin() {
4239
md_ret_files=(
43-
'rott-huntbgin'
40+
'src/rott'
4441
)
4542
}
4643

4744
function game_data_rott-huntbgin() {
48-
if [[ ! -f "$romdir/ports/rott-huntbgin/HUNTBGIN.WAD" ]]; then
49-
downloadAndExtract "https://github.com/Exarkuniv/game-data/raw/main/HUNTBGIN.zip" "$romdir/ports/rott-huntbgin"
50-
mv "$romdir/ports/$md_id/HUNTBGIN/"* "$romdir/ports/$md_id/"
51-
rmdir "$romdir/ports/$md_id/HUNTBGIN/"
52-
chown -R $user:$user "$romdir/ports/$md_id"
45+
if [[ ! -f "$romdir/ports/rott/HUNTBGIN.WAD" ]]; then
46+
downloadAndExtract "https://github.com/Exarkuniv/game-data/raw/main/HUNTBGIN.zip" "$romdir/ports/rott"
47+
mv "$romdir/ports/rott/HUNTBGIN/"* "$romdir/ports/rott/"
48+
rmdir "$romdir/ports/rott/HUNTBGIN/"
49+
chown -R $user:$user "$romdir/ports/rott"
5350
fi
5451

55-
chown -R $user:$user "$romdir/ports/$md_id"
52+
chown -R $user:$user "$romdir/ports/rott"
5653
}
5754

5855
function configure_rott-huntbgin() {
5956
local script="$md_inst/$md_id.sh"
6057
mkRomDir "ports"
61-
mkRomDir "ports/$md_id"
58+
mkRomDir "ports/rott"
6259
moveConfigDir "$home/.rott" "$md_conf_root/rott"
6360
#create buffer script for launch
6461
cat > "$script" << _EOF_
6562
#!/bin/bash
66-
pushd "$romdir/ports/rott-huntbgin"
67-
"$md_inst/rott-huntbgin" \$*
63+
pushd "$romdir/ports/rott"
64+
"$md_inst/rott" \$*
6865
popd
6966
_EOF_
7067

7168
chmod +x "$script"
72-
addPort "$md_id" "rott-huntbgin" "Rise Of The Triad - The Hunt Begins (Shareware)" "XINIT:$script"
69+
addPort "$md_id" "rott-huntbgin" "Rise Of The Triad - The Hunt Begins (Shareware)" "$script"
7370

7471
[[ "$md_mode" == "install" ]] && game_data_rott-huntbgin
7572
}

0 commit comments

Comments
 (0)