From a54350eac6cfc4e6bc9a88ffb61b937a88577add Mon Sep 17 00:00:00 2001 From: r6915ee Date: Tue, 4 Aug 2026 15:12:21 -0700 Subject: [PATCH] Replace `inxi -m` with `inxi --mm` when getting memory type on Linux The `--mm` flag filters out devices with no module installed, unlike the `-m` flag, which would just place a warning that the module was not installed... right in the type field, for that matter. --- source/funkin/backend/utils/MemoryUtil.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/funkin/backend/utils/MemoryUtil.hx b/source/funkin/backend/utils/MemoryUtil.hx index 7578361c8..7571d3c94 100644 --- a/source/funkin/backend/utils/MemoryUtil.hx +++ b/source/funkin/backend/utils/MemoryUtil.hx @@ -176,7 +176,7 @@ final class MemoryUtil { if (process.exitCode() == 0) return reg.matched(1); #elseif linux try { - var process = new HiddenProcess("sh", ["-c", "inxi -m --c 0 | grep -i 'type:' | awk -F'type:' '{print $2}' | awk '{print $1}' | head -n 1"]); + var process = new HiddenProcess("sh", ["-c", "inxi --mm --c 0 | grep -i 'type:' | awk -F'type:' '{print $2}' | awk '{print $1}' | head -n 1"]); var output = StringTools.trim(process.stdout.readAll().toString()); process.close();