From 423b6f5be5e49123a4888fe201c47d9c0edddb5f Mon Sep 17 00:00:00 2001 From: Alexey Dokuchaev Date: Wed, 15 Dec 2021 09:45:18 +0000 Subject: benchmarks/mangohud: the port had been improved (+) - Report CPU frequency and temperature on the HUD - For gathering system information, use sysctlbyname() if possible instead of capturing external programs' output --- benchmarks/mangohud/files/patch-src_file__utils.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 benchmarks/mangohud/files/patch-src_file__utils.h (limited to 'benchmarks/mangohud/files/patch-src_file__utils.h') diff --git a/benchmarks/mangohud/files/patch-src_file__utils.h b/benchmarks/mangohud/files/patch-src_file__utils.h new file mode 100644 index 000000000000..b06efb584aa7 --- /dev/null +++ b/benchmarks/mangohud/files/patch-src_file__utils.h @@ -0,0 +1,10 @@ +--- src/file_utils.h.orig 2021-07-08 06:23:59 UTC ++++ src/file_utils.h +@@ -19,6 +19,7 @@ std::vector ls(const char* root, const ch + bool file_exists(const std::string& path); + bool dir_exists(const std::string& path); + std::string read_symlink(const char * link); ++template T read_sysctl(const char*); + std::string get_exe_path(); + std::string get_wine_exe_name(bool keep_ext = false); + std::string get_home_dir(); -- cgit v1.2.3