From e182fe239e83be0cec03bca5e1c74948e63d103e Mon Sep 17 00:00:00 2001 From: d10sfan <4337981+d10sfan@users.noreply.github.com> Date: Sat, 9 Sep 2023 09:26:24 -0500 Subject: [PATCH] Add support for Hiigara engine (#995) --- engines/hiigara/assets/run-homeworld.sh | 9 ++++++++ engines/hiigara/build.sh | 28 +++++++++++++++++++++++++ engines/hiigara/env.sh | 4 ++++ metadata/packagessniper_v2.json | 28 +++++++++++++++++++++++++ 4 files changed, 69 insertions(+) create mode 100755 engines/hiigara/assets/run-homeworld.sh create mode 100755 engines/hiigara/build.sh create mode 100755 engines/hiigara/env.sh diff --git a/engines/hiigara/assets/run-homeworld.sh b/engines/hiigara/assets/run-homeworld.sh new file mode 100755 index 000000000..d82490e98 --- /dev/null +++ b/engines/hiigara/assets/run-homeworld.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" +cd "$DIR" + +LD_PRELOAD="" ln -rsf homeworld.big Homeworld.big +LD_PRELOAD="" ln -rsf homeworld.big Update.big + +./homeworld diff --git a/engines/hiigara/build.sh b/engines/hiigara/build.sh new file mode 100755 index 000000000..8ec91f6e7 --- /dev/null +++ b/engines/hiigara/build.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +# CLONE PHASE +git clone https://github.com/atsb/Hiigara.git source +pushd source +git checkout 5fca0d2 +popd + +# BUILD PHASE +pushd "source" +cd Linux +./bootstrap +../configure +make +popd + +pushd "source" +cd tools/biggie +./biggie-Linux-compile.sh +cd ../../HomeworldSDL_big +./convert_directory_to_big_file +popd + +# COPY PHASE +cp -rfv "source/Linux/src/homeworld" "$diststart/244160/dist/" +cp -rfv "source/wasm/plug.tga" "$diststart/244160/dist/" +cp -rfv "source/HomeworldSDL.big" "$diststart/244160/dist/" +cp -rfv assets/* "$diststart/244160/dist/" diff --git a/engines/hiigara/env.sh b/engines/hiigara/env.sh new file mode 100755 index 000000000..271ce6923 --- /dev/null +++ b/engines/hiigara/env.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +export STEAM_APP_ID_LIST="244160" +export LICENSE_PATH="./source/LICENSE.txt" diff --git a/metadata/packagessniper_v2.json b/metadata/packagessniper_v2.json index cce19802f..d44f2353c 100644 --- a/metadata/packagessniper_v2.json +++ b/metadata/packagessniper_v2.json @@ -5415,6 +5415,19 @@ } ], "command": "../Homeworld1Classic/Data/run-homeworld.sh" + }, + { + "name": "Hiigara", + "download": [ + "hiigara" + ], + "download_config": [ + { + "extract_location": "../Homeworld1Classic/Data", + "download_name": "hiigara" + } + ], + "command": "../Homeworld1Classic/Data/run-homeworld.sh" } ], "cloudNotAvailable": true, @@ -9242,6 +9255,21 @@ "controllerNotSupported": true, "engine_name": "HomeworldSDL" }, + { + "engine_link": "https://github.com/atsb/Hiigara", + "version": "5fca0d2", + "author": "d10sfan", + "author_link": "https://github.com/d10sfan", + "license": "Relic", + "license_link": "https://github.com/atsb/Hiigara/blob/main/LICENSE.txt", + "notices": [ + { + "key": "non_free" + } + ], + "controllerNotSupported": true, + "engine_name": "Hiigara" + }, { "engine_link": "https://rvgl.org/", "version": "23.0602a1",