Commit Graph

935 Commits (079f67a7295a47eb2ca98a79f95ecf22dd17a5e1)
 

Author SHA1 Message Date
jackun b91be85ff9
Use std::unordered_map and std::mutex instead for object mapping and related cleanups 4 years ago
jackun 54950853b5
Remove redundant 'no_display' code 4 years ago
jackun d78622a322
Don't enable 'read_cfg' too when 'full' is set in MANGOHUD_CONFIG
Could use OVERLAY_PARAM_INTERNAL or something similar but currently
less code to just save the boolean and reset.
4 years ago
jackun 8f66bd7d87
Set stats window height to ImGui::GetCursorPosY() 4 years ago
jackun 2fb0453e28
Create ImGui fonts per swapchain 4 years ago
FlightlessMango 099082affc Refresh config keybind 4 years ago
FlightlessMango 7593582f4a Fixed parsing crosshair color function 4 years ago
jackun 9053b63142
Allocate instance_data with "new" 4 years ago
jackun 68e880a101
config: rename param to "read_cfg" 4 years ago
jackun ad2ed4a99a
config: load highest priority config available only 4 years ago
jackun 80f29aad9d
Allow MANGOHUD_CONFIG to override configuration files' settings.
Use `MANGOHUD_CONFIG=some_setting=1` to skip reading the configuration files
and just use the settings specified with MANGOHUD_CONFIG.

Use `MANGOHUD_CONFIG=read_configs,...` to read configuration files too and
add other settings that you would like to override.
4 years ago
jackun f7e7146883
config: find_last_of can search for multiple characters, doh 4 years ago
telans 6afea3c392
Merge pull request #41 from ikeycode/solus-support
Add Solus support
4 years ago
jackun 6a45ac84b3
config: sometimes wine exe has forward-slashes instead 4 years ago
Ikey Doherty cc2dc97eab
build.sh: Add explicit support for Solus
As Solus is in a longstanding transition away from the Pythonic eopkg
package manager (a fork of PiSI) - some workarounds are required.
In a nut shell, eopkg exit codes aren't applied to info/status commands,
so we must use the Pythonic API.

The 32-bit build dependencies are first calculated, and merged with
the 'system.devel' component required for building any package on
Solus. This is similar to 'build-essential' on other distributions.

With this change, we can safely `./build.sh install` on Solus and
have MANGOHUD=1 working with Vulkan applications, as tested on my
own Solus installation with the Serpent demos in Vulkan mode with
bgfx backend.

Signed-off-by: Ikey Doherty <ikey.doherty@lispysnake.com>
4 years ago
Ikey Doherty 93f3c97a63
build.sh: Support multiple locations of the os-release file
In stateless operating systems the os-release file might not exist
in /etc/ unless a compatability link is in place, or the user has
overriden the distro defaults.

A layering approach should instead be used, to read a set of known
paths in priority order. If the /etc/os-release file is not found,
the fallback location of /usr/lib/os-release will be used instead.

Signed-off-by: Ikey Doherty <ikey.doherty@lispysnake.com>
4 years ago
jackun 65b90fc01b
config file: respect XDG dirs
Other half of #37
4 years ago
telans ab04249782
build/install: respect XDG dirs
Half of #37
4 years ago
telans 32b2445614
install: run from script dir
Fixes #29
4 years ago
telans 6b9bb816d5
update overlay example 4 years ago
jackun 67eab673d8
Override previous setting, std::unordered_map::insert() does not. 4 years ago
telans 9d0b766cda
build: support Pop!_OS 4 years ago
jackun 70d0e81c36
Clone vulkan headers if needed 4 years ago
Danilo Spinella 18edd4eb50 meson: Add option to use system vulkan headers 4 years ago
Danilo Spinella 2c6f9d0d44 meson: Remove generation of unneeded includes
vk_dispatch_table_helper.h and vk_layer_dispatch_table.h headers
are not used anymore by mesa layer, remove their generation.

Remove git modules required only for the generation of above headers.
4 years ago
jackun 5c4816efa5
Unused instance_data 4 years ago
jackun b2abe8073e
Remove unused android stuff 4 years ago
jackun 69cf83d3bc
config file: print that config file is skipped if we failed to open it 4 years ago
jackun 3e0eda559d
print if done parsing config file 4 years ago
jackun 6086a6b9ab
config file: try to detect Wine executable's path 4 years ago
telans ca738c4126
config: add time, vsync explanation 4 years ago
telans 81dc992dfa
readme: mention config 4 years ago
telans fda9f1cd94
install: recursive 4 years ago
telans 9b566a64bd
install: update config locations 4 years ago
jackun 169d5ff99a
Search configs in ~/.config/MangoHud 4 years ago
jackun 08debe5d09
Add per-executable config file support
* executable's name + ".conf" in config dir
* "MangoHud.conf" in executable's folder
4 years ago
jackun 90a93fd2fc
Add "get executable's path" function 4 years ago
jackun 74c9803087
config file: if parameter line has no equal sign, default value to 1 4 years ago
jackun 27848bd253
Don't crash if there's nothing to draw 4 years ago
FlightlessMango d8783d3002 Added time param 4 years ago
FlightlessMango 29bacea97f Add param option full 4 years ago
jackun b9ae979a05
Don't interpolate fps limit sleep overhead
Random hiccups and game pauses can make it go crazy otherwise.
4 years ago
FlightlessMango dba31e6a11 Set background alpha color to 1.0 4 years ago
telans 751fd65e5d
update scripts for config file 4 years ago
telans a7d0a892e1
initial config file 4 years ago
FlightlessMango e947dae9ed Fixed fps limiter accuracy 4 years ago
FlightlessMango c73df54166 Added background_alpha param 4 years ago
jackun 60763420eb
Use defines instead of magic numbers for HUD hotkeys' 4 years ago
FlightlessMango e81fa5776e Added crosshair_color param 4 years ago
FlightlessMango d79d06271f Repurposed no_display param 4 years ago