Commit Graph

1320 Commits

Author SHA1 Message Date
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>
2020-02-17 10:16:42 +00:00
jackun
65b90fc01b
config file: respect XDG dirs
Other half of #37
2020-02-15 13:23:18 +02:00
telans
ab04249782
build/install: respect XDG dirs
Half of #37
2020-02-15 23:35:31 +13:00
telans
32b2445614
install: run from script dir
Fixes #29
2020-02-15 07:45:57 +13:00
telans
6b9bb816d5
update overlay example 2020-02-14 20:06:44 +13:00
jackun
67eab673d8
Override previous setting, std::unordered_map::insert() does not. 2020-02-14 08:45:22 +02:00
telans
9d0b766cda
build: support Pop!_OS 2020-02-14 10:55:55 +13:00
jackun
70d0e81c36
Clone vulkan headers if needed 2020-02-13 23:53:56 +02:00
Danilo Spinella
18edd4eb50 meson: Add option to use system vulkan headers 2020-02-13 21:47:50 +02:00
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.
2020-02-13 21:47:50 +02:00
jackun
5c4816efa5
Unused instance_data 2020-02-13 20:54:17 +02:00
jackun
b2abe8073e
Remove unused android stuff 2020-02-13 20:09:47 +02:00
jackun
69cf83d3bc
config file: print that config file is skipped if we failed to open it 2020-02-13 15:19:42 +02:00
jackun
3e0eda559d
print if done parsing config file 2020-02-13 13:48:29 +02:00
jackun
6086a6b9ab
config file: try to detect Wine executable's path 2020-02-13 13:45:33 +02:00
telans
ca738c4126
config: add time, vsync explanation 2020-02-13 13:08:10 +13:00
telans
81dc992dfa
readme: mention config 2020-02-13 11:17:32 +13:00
telans
fda9f1cd94
install: recursive 2020-02-13 10:27:53 +13:00
telans
9b566a64bd
install: update config locations 2020-02-13 10:26:55 +13:00
jackun
169d5ff99a
Search configs in ~/.config/MangoHud 2020-02-12 23:10:19 +02:00
jackun
08debe5d09
Add per-executable config file support
* executable's name + ".conf" in config dir
* "MangoHud.conf" in executable's folder
2020-02-12 23:00:33 +02:00
jackun
90a93fd2fc
Add "get executable's path" function 2020-02-12 22:59:00 +02:00
jackun
74c9803087
config file: if parameter line has no equal sign, default value to 1 2020-02-12 22:27:00 +02:00
jackun
27848bd253
Don't crash if there's nothing to draw 2020-02-12 19:58:01 +02:00
FlightlessMango
d8783d3002 Added time param 2020-02-12 18:24:00 +01:00
FlightlessMango
29bacea97f Add param option full 2020-02-12 16:52:54 +01:00
jackun
b9ae979a05
Don't interpolate fps limit sleep overhead
Random hiccups and game pauses can make it go crazy otherwise.
2020-02-12 13:58:13 +02:00
FlightlessMango
dba31e6a11 Set background alpha color to 1.0 2020-02-12 12:43:46 +01:00
telans
751fd65e5d
update scripts for config file 2020-02-13 00:00:18 +13:00
telans
a7d0a892e1
initial config file 2020-02-12 22:56:29 +13:00
FlightlessMango
e947dae9ed Fixed fps limiter accuracy 2020-02-12 05:59:18 +01:00
FlightlessMango
c73df54166 Added background_alpha param 2020-02-12 04:51:08 +01:00
jackun
60763420eb
Use defines instead of magic numbers for HUD hotkeys' 2020-02-11 21:50:29 +02:00
FlightlessMango
e81fa5776e Added crosshair_color param 2020-02-11 09:21:23 +01:00
FlightlessMango
d79d06271f Repurposed no_display param 2020-02-11 06:10:10 +01:00
FlightlessMango
50cff923e8 Changed vram to display GB from MB 2020-02-11 02:50:33 +01:00
FlightlessMango
3c4fcda623 Added offset x/y in params 2020-02-10 17:37:37 +01:00
FlightlessMango
2590426ef6 Merge branch 'config' 2020-02-10 17:13:45 +01:00
FlightlessMango
a8e4ac84f9 Merge branch 'crosshair' 2020-02-10 17:08:15 +01:00
FlightlessMango
69ed9db4c1 Merge branch 'limiter' 2020-02-10 17:01:03 +01:00
FlightlessMango
f56c53c152 Removed unused header 2020-02-10 16:59:49 +01:00
FlightlessMango
2003ae93c9 Continue parsing overlay params without env 2020-02-10 14:57:22 +01:00
jackun
1fc94f6db5
Remove unused histogram's get_stat() 2020-02-10 12:42:44 +02:00
Georg Lehmann
7a4ffe8206
Vulkan overlay: use the corresponding image index for each swapchain
pImageIndices should be a pointer to the current image index
otherwise every swapchain but the first one could have a wrong image index
2020-02-10 12:38:05 +02:00
jackun
b2f20f02d2
Prefix check links too 2020-02-10 12:37:24 +02:00
FlightlessMango
5a62a1b0de Cleaning up 2020-02-10 11:03:39 +01:00
FlightlessMango
33f48c91be Apply params from config file 2020-02-10 10:32:22 +01:00
FlightlessMango
ebc49ae8c5 Basic parse config 2020-02-10 09:37:19 +01:00
FlightlessMango
d578d612d4 Renamed overlay_param.c to .cpp 2020-02-09 14:02:40 +01:00
FlightlessMango
47f293a722 Change param keybind vars to KeySym 2020-02-09 12:26:56 +01:00