Add `--dlsym` option

sdf
jackun 4 years ago
parent a16a5fd907
commit 24b731f78c
No known key found for this signature in database
GPG Key ID: 119DB3F1D05A9ED3

@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash
if [ "$#" -eq 0 ]; then
programname=`basename "$0"`
@ -8,6 +8,11 @@ if [ "$#" -eq 0 ]; then
exit 1
fi
if [ "$1" = "--dlsym" ]; then
MANGOHUD_DLSYM=1
shift
fi
MANGOHUD_LIB_NAME="libMangoHud.so"
if [ "$MANGOHUD_DLSYM" = "1" ]; then

@ -5,7 +5,7 @@
mangohud \- enable MangoHud on any application
.SH SYNOPSIS
\fBmangohud\fR COMMAND
\fBmangohud\fR [--dlsym] COMMAND
.SH DESCRIPTION
MangoHud is a Vulkan/OpenGL overlay for monitoring FPS, temperatures, CPU/GPU load and more.
@ -15,7 +15,7 @@ MangoHud can be enabled for Vulkan applications by setting \fBMANGOHUD=1\fR as e
.br
To load MangoHud for any application, including OpenGL applications, the \fBmangohud\fR executable can be used. It preloads a library via ld into the application.
.br
Note: some OpenGL applications may also need dlsym hooking. This can be done by setting \fBMANGOHUD_DLSYM=1\fR as envrionment variable.
Note: some OpenGL applications may also need dlsym hooking. This can be done by passing option \fB--dlsym\fR or by setting \fBMANGOHUD_DLSYM=1\fR as envrionment variable.
.SH CONFIG
MangoHud comes with a config file which can be used to set configuration options globally or per application. The priorities of different config files are:

Loading…
Cancel
Save