diff options
| author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2021-12-15 09:45:18 +0000 |
|---|---|---|
| committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2021-12-15 09:45:18 +0000 |
| commit | 423b6f5be5e49123a4888fe201c47d9c0edddb5f (patch) | |
| tree | 0d4895181c34db411110dc54676aa8b672251987 /benchmarks/mangohud/files/patch-src_file__utils.h | |
| parent | 752fb0b3ef43cfe40a3fcc4a2eb55221491f29e7 (diff) | |
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
Diffstat (limited to 'benchmarks/mangohud/files/patch-src_file__utils.h')
| -rw-r--r-- | benchmarks/mangohud/files/patch-src_file__utils.h | 10 |
1 files changed, 10 insertions, 0 deletions
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<std::string> 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 <typename T> 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(); |
