From b9a88297cb33785e40f33b39002d45ca2bcd6770 Mon Sep 17 00:00:00 2001 From: crueter Date: Sat, 25 Jul 2026 21:20:04 +0200 Subject: [fs] fix crash on '#' comments in pchtxt patches (#4124) Adds `#` as a valid pchtxt comment, and fixes a crash that could occur when using odd-length values This patch was sent by Adam Kittelson Signed-off-by: crueter Co-authored-by: Cole Avenue Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4124 Reviewed-by: MaranBr Reviewed-by: Lizzie --- src/core/file_sys/ips_layer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/file_sys/ips_layer.cpp') diff --git a/src/core/file_sys/ips_layer.cpp b/src/core/file_sys/ips_layer.cpp index 1dddd27909..62becc7847 100644 --- a/src/core/file_sys/ips_layer.cpp +++ b/src/core/file_sys/ips_layer.cpp @@ -256,7 +256,7 @@ void IPSwitchCompiler::Parse() { const auto& patch_line = lines[++i]; // Patch line may contain comments - if (StartsWith(patch_line, "//")) { + if (StartsWith(patch_line, "//") || StartsWith(patch_line, "#")) { continue; } -- cgit v1.2.3