Skip to content

Removing the need for const_cast.

8cc098a
Select commit
Loading
Failed to load commit list.
Merged

Use IO<File> as data source for memory editors #2011

Removing the need for const_cast.
8cc098a
Select commit
Loading
Failed to load commit list.
CodeScene Delta Analysis / CodeScene Code Health Review (main) failed Apr 19, 2026 in 35s

CodeScene PR Check

Quality Gate Failed

Code Health Improved (1 files improve in Code Health)

Gates Failed
Enforce advisory code health rules (1 file with Code Duplication)

Gates Passed
3 Quality Gates Passed

See analysis details in CodeScene

Reason for failure
Enforce advisory code health rules Violations Code Health Impact
file.cc 1 advisory rule 8.82 → 8.55 Suppress
View Improvements
File Code Health Impact Categories Improved
imgui_memory_editor.cpp 5.18 → 5.26 Complex Method, Overall Code Complexity

Quality Gate Profile: Clean Code Collective
Install CodeScene MCP: safeguard and uplift AI-generated code. Catch issues early with our IDE extension and CLI tool.

Details

🚩 Declining Code Health (highest to lowest):

  • Code Duplication file.cc

✅ Improving Code Health:

  • Complex Method imgui_memory_editor.cpp: MemoryEditor::DrawContents
  • Complex Method imgui_memory_editor.cpp: MemoryEditor::DrawPreviewData
  • Overall Code Complexity imgui_memory_editor.cpp

Annotations

Check warning on line 1 in src/support/file.cc

See this annotation in the file changed.

@codescene-delta-analysis codescene-delta-analysis / CodeScene Code Health Review (main)

❌ Getting worse: Code Duplication

introduced similar code in: PCSX::SubFile::readAt,PCSX::SubFile::wSeek,PCSX::SubFile::writeAt. Avoid duplicated, aka copy-pasted, code inside the module. More duplication lowers the code health.

Check notice on line 366 in third_party/imgui_memory_editor/imgui_memory_editor.cpp

See this annotation in the file changed.

@codescene-delta-analysis codescene-delta-analysis / CodeScene Code Health Review (main)

✅ Getting better: Complex Method

MemoryEditor::DrawContents decreases in cyclomatic complexity from 81 to 76, threshold = 9. This function has many conditional statements (e.g. if, for, while), leading to lower code health. Avoid adding more conditionals and code to it without refactoring.

Check notice on line 570 in third_party/imgui_memory_editor/imgui_memory_editor.cpp

See this annotation in the file changed.

@codescene-delta-analysis codescene-delta-analysis / CodeScene Code Health Review (main)

✅ Getting better: Complex Method

MemoryEditor::DrawPreviewData decreases in cyclomatic complexity from 38 to 37, threshold = 9. This function has many conditional statements (e.g. if, for, while), leading to lower code health. Avoid adding more conditionals and code to it without refactoring.

Check notice on line 1 in third_party/imgui_memory_editor/imgui_memory_editor.cpp

See this annotation in the file changed.

@codescene-delta-analysis codescene-delta-analysis / CodeScene Code Health Review (main)

✅ Getting better: Overall Code Complexity

The mean cyclomatic complexity decreases from 11.31 to 10.47, threshold = 4. This file has many conditional statements (e.g. if, for, while) across its implementation, leading to lower code health. Avoid adding more conditionals.