ports/benchmarks/mangohud/files/patch-src_file__utils.h
Alexey Dokuchaev 423b6f5be5 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
2021-12-15 09:45:18 +00:00

10 lines
441 B
C++

--- 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();