diff options
| author | crueter <crueter@eden-emu.dev> | 2026-07-25 21:20:04 +0200 |
|---|---|---|
| committer | crueter <crueter@eden-emu.dev> | 2026-07-25 21:20:04 +0200 |
| commit | b9a88297cb33785e40f33b39002d45ca2bcd6770 (patch) | |
| tree | fb2669190e6bcb140f45d623603ddbc684415d04 /src/core/file_sys/ips_layer.cpp | |
| parent | 0133caf702732682d7518b350d4e532929c42bd6 (diff) | |
[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 <adam@apathydrive.com>
Signed-off-by: crueter <crueter@eden-emu.dev>
Co-authored-by: Cole Avenue <cole@melisand.re>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4124
Reviewed-by: MaranBr <maranbr@eden-emu.dev>
Reviewed-by: Lizzie <lizzie@eden-emu.dev>
Diffstat (limited to 'src/core/file_sys/ips_layer.cpp')
| -rw-r--r-- | src/core/file_sys/ips_layer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
