Skip to content

Commit

Permalink
Add DXX-Redux (#1047)
Browse files Browse the repository at this point in the history
  • Loading branch information
d10sfan authored Dec 27, 2023
1 parent 0392c54 commit 2c5f56b
Show file tree
Hide file tree
Showing 6 changed files with 107 additions and 5 deletions.
6 changes: 6 additions & 0 deletions engines/dxx-redux/assets/run-d1redux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

ln -rsf d1xr-sc55-music.dxa ./descent/d1xr-sc55-music.dxa
HOGDIR=./descent
LD_LIBRARY_PATH="lib:$LD_LIBRARY_PATH" ./d1x-redux -hogdir "$HOGDIR"

6 changes: 6 additions & 0 deletions engines/dxx-redux/assets/run-d2redux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

ln -rsf d2xr-sc55-music.dxa ./descent2/d2xr-sc55-music.dxa
HOGDIR=./descent2
LD_LIBRARY_PATH="lib:$LD_LIBRARY_PATH" ./d2x-redux -hogdir "$HOGDIR"

28 changes: 28 additions & 0 deletions engines/dxx-redux/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash

export LDFLAGS=-L"$VCPKG_INSTALLED_PATH/lib"
export LIBRARY_PATH="$VCPKG_INSTALLED_PATH/lib"
export CXXFLAGS="-I"$VCPKG_INSTALLED_PATH"/include"
export CFLAGS="-I"$VCPKG_INSTALLED_PATH"/include"

# CLONE PHASE
git clone https://github.com/dxx-redux/dxx-redux.git source
pushd source
git checkout -f 9bbca7f
popd

# BUILD PHASE
pushd source
cmake -S d1 -B buildd1 -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_PREFIX_PATH="$VCPKG_INSTALLED_PATH"
cmake --build buildd1

cmake -S d2 -B buildd2 -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_PREFIX_PATH="$VCPKG_INSTALLED_PATH"
cmake --build buildd2
popd

# COPY PHASE
cp -rfv source/buildd1/main/d1x-redux "$diststart/273570/dist/"
cp -rfv source/buildd2/main/d2x-redux "$diststart/273580/dist/"

cp -rfv assets/run-d1redux.sh "$diststart/273570/dist/"
cp -rfv assets/run-d2redux.sh "$diststart/273580/dist/"
5 changes: 5 additions & 0 deletions engines/dxx-redux/env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

export STEAM_APP_ID_LIST="273570 273580"
export LICENSE_PATH="./source/COPYING.txt"
export LIBRARIES="sdl12compat sdl12mixer"
6 changes: 6 additions & 0 deletions engines/dxx-redux/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
"dependencies": [
{ "name": "physfs" }
]
}
61 changes: 56 additions & 5 deletions metadata/packagessniper_v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -5858,8 +5858,26 @@
"file": "dxx-rebirth-273570-15.tar.xz"
}
],
"command": "./run-d1x.sh",
"engine_name": "DXX-Rebirth",
"choices": [
{
"name": "DXX-Rebirth",
"command": "./run-d1x.sh",
"engine_name": "DXX-Rebirth",
"download": [
"music",
"dxx-rebirth"
]
},
{
"name": "DXX-Redux",
"command": "./run-d1redux.sh",
"engine_name": "DXX-Redux",
"download": [
"music",
"dxx-redux"
]
}
],
"cloudNotAvailable": true,
"app_id": "273570"
},
Expand All @@ -5877,8 +5895,26 @@
"file": "dxx-rebirth-273580-15.tar.xz"
}
],
"command": "./run-d2x.sh",
"engine_name": "DXX-Rebirth",
"choices": [
{
"name": "DXX-Rebirth",
"command": "./run-d2x.sh",
"engine_name": "DXX-Rebirth",
"download": [
"music",
"dxx-rebirth"
]
},
{
"name": "DXX-Redux",
"command": "./run-d2redux.sh",
"engine_name": "DXX-Redux",
"download": [
"music",
"dxx-redux"
]
}
],
"cloudNotAvailable": true,
"app_id": "273580"
},
Expand Down Expand Up @@ -9913,6 +9949,21 @@
],
"controllerNotSupported": true,
"engine_name": "Dominatrix"
},
{
"engine_link": "https://github.com/dxx-redux/dxx-redux",
"version": "9bbca7f",
"author": "d10sfan",
"author_link": "https://github.com/d10sfan",
"license": "D1X-Rebirth License",
"license_link": "https://github.com/dxx-redux/dxx-redux/blob/main/COPYING.txt",
"notices": [
{
"key": "non_free"
}
],
"controllerNotSupported": true,
"engine_name": "DXX-Redux"
}
],
"default_engine": {
Expand Down Expand Up @@ -10170,4 +10221,4 @@
"value": "Save Format Not Compatible"
}
]
}
}

0 comments on commit 2c5f56b

Please sign in to comment.