Skip to content

Commit

Permalink
Add RFGZDoom (#1291)
Browse files Browse the repository at this point in the history
* Add RFGZDoom

* Update build.sh
  • Loading branch information
d10sfan authored Aug 1, 2024
1 parent 35b3912 commit 9a8844e
Show file tree
Hide file tree
Showing 6 changed files with 110 additions and 1 deletion.
17 changes: 17 additions & 0 deletions engines/relentless-frontier/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Copyright (c) 2019 Patryk Obara

This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.

Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:

1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
6 changes: 6 additions & 0 deletions engines/relentless-frontier/assets/run-gzdoom.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

export SteamDeck=""
unset SteamDeck

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

# From https://gitlab.com/luxtorpeda/packages/gzdoom - See LICENSE file for more information
# CLONE PHASE
git clone https://github.com/Waffle-Iron-Studios/Griddle.git source
pushd source
git checkout "$COMMIT_HASH"
popd

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

# COPY PHASE
cp -rfv "source/build"/{rfgzdoom,soundfonts,*.pk3} "$diststart/common/dist/"
cp -rfv assets/* "$diststart/common/dist/"

ln -rsf "$diststart/common/dist/lib/libfluidsynth.so.3" "$diststart/common/dist/lib/libfluidsynth.so.2"
17 changes: 17 additions & 0 deletions engines/relentless-frontier/env.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"STEAM_APP_ID_LIST": [
"1677900"
],
"LICENSE_PATH": "./source/LICENSE",
"ADDITIONAL_LICENSES": [
"./LICENSE"
],
"COMMON_PACKAGE": true,
"LIBRARIES": [
"zmusic"
],
"APT_LIBRARIES": [
"mercurial"
],
"COMMIT_HASH": "7b52b6c"
}
7 changes: 7 additions & 0 deletions engines/relentless-frontier/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"] },
"libwebp"
]
}
39 changes: 38 additions & 1 deletion metadata/packagessniper_v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -9052,6 +9052,32 @@
"cloudAvailable": true,
"cloudSupported": true,
"app_id": "1678420"
},
{
"game_name": "Relentless Frontier",
"download": [],
"command": "./run-gzdoom-local.sh",
"command_args": [
"-iwad",
"Content/RF.ipk3",
"-file",
"Content/griddle_rf.pk3",
"-file",
"Content/PK3/RF_Data.pk3",
"-config",
"gzdoom.ini",
"-savedir",
"./Content/Save"
],
"notices": [
{
"key": "saves",
"value": "save_game_dir"
}
],
"engine_name": "RFGZDoom",
"cloudNotAvailable": true,
"app_id": "1677900"
}
],
"engines": [
Expand Down Expand Up @@ -9148,6 +9174,17 @@
],
"internal_engine_name": "gzdoom"
},
{
"engine_link": "https://github.com/Waffle-Iron-Studios/Griddle/tree/rf-version",
"version": "7b52b6c",
"author": "dreamer/d10sfan",
"author_link": "https://github.com/dreamer",
"license": "GPLv3",
"license_link": "https://github.com/Waffle-Iron-Studios/Griddle/blob/rf-version/LICENSE",
"controllerSupported": true,
"engine_name": "RFGZDoom",
"internal_engine_name": "rfgzdoom"
},
{
"engine_link": "https://github.com/Youda008/DoomRunner",
"version": "1.8.2",
Expand Down Expand Up @@ -11206,4 +11243,4 @@
"value": "Save Format Not Compatible"
}
]
}
}

0 comments on commit 9a8844e

Please sign in to comment.