summaryrefslogtreecommitdiff
path: root/hosts/iroha/gentoo/patches/games-util/mangohud
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/iroha/gentoo/patches/games-util/mangohud')
-rw-r--r--hosts/iroha/gentoo/patches/games-util/mangohud/jc42_ram_temp.diff14
1 files changed, 14 insertions, 0 deletions
diff --git a/hosts/iroha/gentoo/patches/games-util/mangohud/jc42_ram_temp.diff b/hosts/iroha/gentoo/patches/games-util/mangohud/jc42_ram_temp.diff
new file mode 100644
index 0000000..4301053
--- /dev/null
+++ b/hosts/iroha/gentoo/patches/games-util/mangohud/jc42_ram_temp.diff
@@ -0,0 +1,14 @@
+diff --git a/src/memory.cpp b/src/memory.cpp
+index fc117f5..2c01c51 100644
+--- a/src/memory.cpp
++++ b/src/memory.cpp
+@@ -43,7 +43,8 @@ void update_mem_temp() {
+ std::string path = "/sys/class/hwmon/";
+ auto dirs = ls(path.c_str(), "hwmon", LS_DIRS);
+ for (auto &dir : dirs) {
+- if (read_line(path + dir + "/name") == "spd5118")
++ const auto name = read_line(path + dir + "/name");
++ if (name == "spd5118" || name == "jc42")
+ mem_temp_files.emplace_back(path + dir + "/temp1_input");
+ }
+ if (mem_temp_files.empty())