From 546574e71c0fcdce3c0a6030572775bdefed5777 Mon Sep 17 00:00:00 2001 From: lizzie Date: Mon, 31 Aug 2026 20:28:03 +0000 Subject: [PATCH] [ips_layer] fix TLTD 60 FPS mod specifically Signed-off-by: lizzie --- src/core/file_sys/ips_layer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/file_sys/ips_layer.cpp b/src/core/file_sys/ips_layer.cpp index 1df2f9dadd..b64ad8dcf2 100644 --- a/src/core/file_sys/ips_layer.cpp +++ b/src/core/file_sys/ips_layer.cpp @@ -267,6 +267,9 @@ void IPSwitchCompiler::Parse(std::span bytes) { ++p; } } + // remove trailing + for (; p > sline.cbegin() && std::isspace(*p); --p) + ; // now we have the preprocessed string ;) std::string_view pp_str(sline_start, p); if (pp_str.size() > 0 && !parse_line(pp_str)) {