Commit Graph

1371 Commits

Author SHA1 Message Date
Emil Velikov
597f78cbee Fixup device/vendor node handling
Currently we readout the data as string only to convert it to hex. In
the error case, we leak the fd for the given nodes.

Read the data as hex directly, error out if that fails and avoid the
leaks.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2022-03-06 19:03:35 +00:00
Emil Velikov
e3de89e475 Couple of whitespace fixes
Automatically picked by my editor, while fixing the warnings with prior
commits.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2022-03-06 19:03:35 +00:00
Emil Velikov
c5748a3154 Reorder Logger() constructor args
Currently the order varies across the struct and constructor. As a nice
reminder GCC will throw a lovely warning at us. Fix the ordering.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2022-03-06 19:03:35 +00:00
Emil Velikov
30cfe839eb Address signed comparisons warnings
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2022-03-06 19:03:35 +00:00
Emil Velikov
8ac81477d9 Remove unused parseConfigFile() return type
Was briefly introduced a while ago and the only user was been dropped
since then.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2022-03-06 19:02:39 +00:00
Emil Velikov
dc53cbf0f0 Remove unused-but-set variables
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2022-03-06 19:01:23 +00:00
Emil Velikov
e3977ad648 meson: increase the warning_level to 2
The default is 1, which effectively omits -Wextra.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2022-03-06 14:16:06 +00:00
Emil Velikov
a5d5091f0e meson: build with -Wno-unused-parameter
Otherwise we get a ton of warnings about unused function parameters.
The existing -Qunused-arguments seems to be clang specific.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2022-03-06 14:16:06 +00:00
FlightlessMango
3f2db318c5 Some fixes for windows compiling 2022-02-24 22:26:28 +01:00
FlightlessMango
ae7c5f0f24 Fix hud benchmark 2022-02-24 22:26:28 +01:00
Alessandro Toia
4026743fe3 add gamepad_battery & gamepad_battery_icon params to readme 2022-02-19 21:52:52 -08:00
Alessandro Toia
9b668babdc gamepad: add bool is_charging 2022-02-18 18:16:41 -08:00
Alessandro Toia
6db23968ee gamepad: fix 8Bitdo counter 2022-02-18 18:16:41 -08:00
Alessandro Toia
74b328d209 gamepad: add option to disable icon and show capacity instead 2022-02-18 18:16:41 -08:00
Alessandro Toia
5c92c32491 add gamepad_battery to legacy elements 2022-02-18 18:16:41 -08:00
Alessandro Toia
7d90ef8169 GAMEPAD: add 8Bitdo support 2022-02-18 18:16:41 -08:00
Alessandro Toia
a484f32e57 GAMEPAD: remove unsed variables 2022-02-18 18:16:41 -08:00
Alessandro Toia
a8ab4e2991 GAMEPAD: remove unused param and change xone to xbox 2022-02-18 18:16:38 -08:00
Alessandro Toia
4be3ba20c2 GAMEPAD: add battery reporting for gamepad devices
(xone,xpadneo,ds4,ds5,switch)
2022-02-18 18:14:14 -08:00
jackun
a029dfaaf2
Don't hide gpu_metrics behind HAVE_LIBDRM_AMDGPU 2022-02-18 17:35:11 +02:00
FlightlessMango
93f389dd62 clean up frametime_data 2022-02-18 16:08:14 +01:00
FlightlessMango
3a667ab66b Revert FPS calc 2022-02-18 16:08:14 +01:00
FlightlessMango
cf8ba8fd63 mangoapp: clean up msg_size 2022-02-18 16:08:14 +01:00
FlightlessMango
d82738b03c mangoapp: use GAMESCOPE_FOCUSED_APP_GFX instead 2022-02-18 16:08:14 +01:00
FlightlessMango
68f40c56cc only shrink frametime graph on mangoapp 2022-02-18 16:08:14 +01:00
jackun
e555a942fb
Use single IO stats instance 2022-02-18 16:44:10 +02:00
FlightlessMango
e12042ca3d mangoapp: adjust for changed msg size in gamescope 2022-02-17 15:27:17 +01:00
FlightlessMango
fa133940c8 Fix min/max frametime 2022-02-17 12:36:04 +01:00
Alessandro Toia
fb97530965 cpu: Fix not reporting amd cpu power 2022-02-16 19:53:42 -08:00
FlightlessMango
e289a55c6f mangoapp: make sure steam_focused is false when mangoapp_steam 2022-02-16 11:26:39 +01:00
FlightlessMango
316914da8d mangoapp: fixed mangoapp not respecting no_display 2022-02-15 19:16:45 +01:00
FlightlessMango
5cdedc4671 mangoapp: gamescope debug graphs 2022-02-15 10:23:33 +01:00
jackun
4608fa5e3a
vkGetInstanceProcAddr(instance, "vkGetInstanceProcAddr") should return our vkGetInstanceProcAddr not the next in the chain. 2022-02-15 00:35:55 +02:00
FlightlessMango
7740e8430f mangoapp: clean up unused variable 2022-02-14 11:01:20 +01:00
FlightlessMango
44a335a809 mangoapp: mangoapp_steam bool 2022-02-14 11:01:03 +01:00
FlightlessMango
6521eaa82d mangoapp: hide hud by default 2022-02-14 04:46:11 +01:00
Alessandro Toia
056f7b0e29 Check if battery status is full 2022-02-13 14:40:04 -08:00
FlightlessMango
17867f2a6d Battery: show remaining if > 1.f 2022-02-13 15:01:47 +01:00
FlightlessMango
b11714a326 mangoapp: hide fsr sharp when off 2022-02-13 15:00:16 +01:00
FlightlessMango
339f5c0d11 mangoapp: hide when steam is focused 2022-02-13 14:57:48 +01:00
FlightlessMango
cdcd08be44 battery remaining: don't show seconds at least by default 2022-02-13 08:51:28 +01:00
FlightlessMango
5508933c47 mangoapp: make fsr display a little prettier 2022-02-13 08:51:09 +01:00
Alessandro Toia
590f52d223 When battery is plugged in show plug icon 2022-02-12 15:28:34 -08:00
FlightlessMango
30ee0b770d Don't use all sysfs files if metrics_path 2022-02-11 08:53:06 +01:00
FlightlessMango
c708b1a8a8 disable deviceid check for now 2022-02-11 08:52:04 +01:00
FlightlessMango
4556caf6d3 mangoapp: remove some debug 2022-02-11 05:52:32 +01:00
FlightlessMango
b598d22543 mangoapp: don't write imgui.ini 2022-02-11 03:05:44 +01:00
Alessandro Toia
b158888d54 Add remaining time text to battery 2022-02-08 21:33:43 -08:00
FlightlessMango
61fb9267a0 mangoapp: don't use fsr if msg doesn't contain fsr 2022-02-09 05:33:08 +01:00
FlightlessMango
39f6ae98ec Battery remaining time 2022-02-09 05:20:59 +01:00