Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions linux/olmod.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,22 @@ olargs=${args[@]}

if [[ -z "$OSTYPE" || "$OSTYPE" != "darwin"* ]];
then
olmodso="${olmoddir}/olmod.so"
olmodso="./olmod.so"
overload="${gamedir}/Overload.x86_64"
if [[ -v SteamAppId ]];
then
echo "Running under Steam; replacing LD_PRELOAD to avoid conflict with Steam Overlay"
olpreload="${olmodso}"
else
olpreload="${LD_PRELOAD:+${LD_PRELOAD}:}${olmodso}"
fi

if [[ -f "${olmodso}" ]];
then
if [[ -f "${overload}" ]];
then
cd "${olmoddir}"
OLMODDIR="${olmoddir}" LD_PRELOAD="${LD_PRELOAD:+$LD_PRELOAD:}./olmod.so" "${overload}" ${olargs}
OLMODDIR="${olmoddir}" LD_PRELOAD="${olpreload}" LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+${LD_LIBRARY_PATH}:}${olmoddir}" "${overload}" ${olargs}
else
echo "Error: Overload.x86_64 not found." >&2
echo "Looked in ${gamedir}" >&2
Expand Down
Empty file modified linux/olmodserver.sh
100644 → 100755
Empty file.
Empty file modified linux/olmodserverinet.sh
100644 → 100755
Empty file.