mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
1.5 KiB
1.5 KiB
PPSSPP Copilot Instructions
These rules apply to this repository by default.
Ignore the folder ai_instructions, it's old stuff from contributors.
Priorities
- Preserve emulator behavior and compatibility first.
- Prefer correctness over speed when they conflict.
- Improve performance only when behavior is unchanged and measurable.
- Keep style changes minimal unless requested. Follow existing code patterns and conventions.
Change Strategy
- Make the smallest safe change that solves the issue.
- Avoid broad refactors unless they are required for correctness.
- Preserve platform-specific code paths and build logic.
- Keep cross-platform parity in mind when changing shared code.
Core Safety Checks
- For HLE, CPU, GPU, timing, threading, and memory changes, call out regression risks explicitly.
- Consider savestate compatibility when changing serialized state.
- Keep lock usage and shared-state access consistent with existing patterns.
- Prefer existing architecture and helper paths over introducing new abstractions.
Build and Validation
To verify that things build on Linux/Mac, use ./b.sh --debug. For Windows, use the Visual Studio solution in the Windows subdirectory.
Do not run unit test (I will add instructions for how to run them later).
Review Expectations
- In reviews, list concrete risks and behavior changes before summaries.
- Include file and symbol references for important findings.
- Propose focused follow-up checks when full validation is not possible.