From 0848d6c89defb95966deeecd1c61352deccbeaec Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Sat, 25 Apr 2026 14:28:02 -0400 Subject: New CPU + Cleanup --- .../gentoo/patches/games-util/mangohud/jc42_ram_temp.diff | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 hosts/iroha/gentoo/patches/games-util/mangohud/jc42_ram_temp.diff (limited to 'hosts/iroha/gentoo/patches/games-util') 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()) -- cgit v1.2.3-101-g0448