pcsx2/pcsx2-qt/Debugger
Dan McCarthy ecd3b87cc0
Debugger: Fix Importing Breakpoints CSV functionality (#10486)
* Debugger: Fix Importing Breakpoints CSV functionality

This resolves a few issues with the Breakpoint CSV importing functionality.
Makes the following changes/fixes:
-  Assembly instructions with commas caused part of the instruction text to be considered the start of a new column (comma is the CSV delimiter), resulting in "too many columns errors" and failing to import. Now puts values in quotes and detects the true start and end of the values, so that no extra columns are created.
- The import function was using the incorrect columns to load since the Enabled column was moved to be the first one but the import function had not been updated. Fixed this by using the column enum values instead of hardcoded numbers, so if ordering in the model changes it will still import fine.
- Updates the beginRemoveRows function to not remove an extra row. With this function you would want a "count" of 0 to remove 1, so "row, row" deletes one, "row, row+1" deletes 2. Updates it to subtract one so that the range is not including one more than it is intended to.
-

* Misc: Cleanup regex string & add explicit imports

Uses raw string literal to make the regular expression easier to read since regex is ugly enough as it is, we really don't need escaping characters in a string on top.

Also explicitly includes used Qt classes.
2023-12-30 14:01:30 +10:00
..
Models Debugger: Fix Importing Breakpoints CSV functionality (#10486) 2023-12-30 14:01:30 +10:00
BreakpointDialog.cpp Misc: Remove explicit PCH include, switch to SPDX 2023-12-24 14:03:14 +10:00
BreakpointDialog.h Misc: Remove explicit PCH include, switch to SPDX 2023-12-24 14:03:14 +10:00
BreakpointDialog.ui Debugger: Initial debugger implementation 2022-12-24 07:21:49 +00:00
CpuWidget.cpp Debugger: Fix Importing Breakpoints CSV functionality (#10486) 2023-12-30 14:01:30 +10:00
CpuWidget.h Misc: Remove explicit PCH include, switch to SPDX 2023-12-24 14:03:14 +10:00
CpuWidget.ui Debugger: Add memory search types: GreaterThan(OrEqual), LesserThan(OrEqual), and Not Equal (#10441) 2023-12-23 19:02:48 +10:00
DebuggerWindow.cpp Misc: Remove explicit PCH include, switch to SPDX 2023-12-24 14:03:14 +10:00
DebuggerWindow.h Misc: Remove explicit PCH include, switch to SPDX 2023-12-24 14:03:14 +10:00
DebuggerWindow.ui Debugger: Fix an issue where the debugger is always on top of the main window 2023-10-13 13:53:12 +01:00
DisassemblyWidget.cpp Misc: Remove explicit PCH include, switch to SPDX 2023-12-24 14:03:14 +10:00
DisassemblyWidget.h Misc: Remove explicit PCH include, switch to SPDX 2023-12-24 14:03:14 +10:00
DisassemblyWidget.ui Debugger: Initial debugger implementation 2022-12-24 07:21:49 +00:00
MemoryViewWidget.cpp Misc: Remove explicit PCH include, switch to SPDX 2023-12-24 14:03:14 +10:00
MemoryViewWidget.h Misc: Remove explicit PCH include, switch to SPDX 2023-12-24 14:03:14 +10:00
MemoryViewWidget.ui Debugger: Initial debugger implementation 2022-12-24 07:21:49 +00:00
RegisterWidget.cpp Misc: Remove explicit PCH include, switch to SPDX 2023-12-24 14:03:14 +10:00
RegisterWidget.h Misc: Remove explicit PCH include, switch to SPDX 2023-12-24 14:03:14 +10:00
RegisterWidget.ui Debugger: Initial debugger implementation 2022-12-24 07:21:49 +00:00