Skip to content

Commit

Permalink
Add max (#1058)
Browse files Browse the repository at this point in the history
  • Loading branch information
d10sfan authored Jan 25, 2024
1 parent 7cf9cf2 commit bfae4f9
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 1 deletion.
4 changes: 4 additions & 0 deletions engines/max/assets/run-max.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

export LD_LIBRARY_PATH="lib:$LD_LIBRARY_PATH"
./max "$@"
27 changes: 27 additions & 0 deletions engines/max/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash

export LDFLAGS=-L"$VCPKG_INSTALLED_PATH/lib"
export LIBRARY_PATH="$VCPKG_INSTALLED_PATH/lib"
export CFLAGS="$CFLAGS -std=c++20"
export CXXFLAGS="$CXXFLAGS -std=c++20"

# CLONE PHASE
git clone https://github.com/klei1984/max.git source
pushd source
git checkout 0317272
popd

# BUILD PHASE
pushd "source"
mkdir -p build
cd build
cmake \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_PREFIX_PATH="$VCPKG_INSTALLED_PATH" \
..
make -j "$(nproc)"
popd

# COPY PHASE
cp -rfv source/build/max "$diststart/615250/dist/"
cp -rfv assets/* "$diststart/615250/dist/"
6 changes: 6 additions & 0 deletions engines/max/env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

#!/bin/bash

export STEAM_APP_ID_LIST="615250"
export LICENSE_PATH="./source/LICENSE"
export GCC_12="1"
7 changes: 7 additions & 0 deletions engines/max/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
"dependencies": [
{ "name": "fluidsynth", "features": ["pulseaudio"] },
"miniaudio"
]
}
20 changes: 19 additions & 1 deletion metadata/packagessniper_v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -8386,6 +8386,14 @@
"engine_name": "DREAMM",
"cloudNotAvailable": true,
"app_id": "32400"
},
{
"game_name": "M.A.X.: Mechanized Assault & Exploration",
"download": [],
"command": "./run-max.sh",
"engine_name": "M.A.X.",
"cloudNotAvailable": true,
"app_id": "615250"
}
],
"engines": [
Expand Down Expand Up @@ -9995,6 +10003,16 @@
],
"controllerNotSupported": true,
"engine_name": "DXX-Redux"
},
{
"engine_link": "https://github.com/klei1984/max",
"version": "0317272",
"author": "d10sfan",
"author_link": "https://github.com/d10sfan",
"license": "MIT",
"license_link": "https://github.com/klei1984/max/blob/master/LICENSE",
"controllerNotSupported": true,
"engine_name": "M.A.X."
}
],
"default_engine": {
Expand Down Expand Up @@ -10252,4 +10270,4 @@
"value": "Save Format Not Compatible"
}
]
}
}

0 comments on commit bfae4f9

Please sign in to comment.