General Description of the settings.h File
The settings.h file is used to configure various console-specific settings for PlayStation models. It defines region-specific settings, BIOS patch configurations, and delay values for different PlayStation versions. The file is structured to customize behavior based on the selected console model, making it adaptable for different hardware configurations.
Key Features
Console Selection
The file uses #ifdef preprocessor directives to select specific settings based on the PlayStation model. This allows the configuration of the firmware based on the specific console. Each model has unique settings tailored to its hardware.
- Region Definitions:
- Different regions are defined through preprocessor directives (e.g.,
SCEAfor North America,SCEEfor Europe,SCEIfor Japan). - This allows the firmware to adapt according to the console's region.
- Different regions are defined through preprocessor directives (e.g.,
BIOS Patching
Some console models include a BIOS_PATCH, enabling specific patches for compatibility or system functionality. These settings modify the behavior of the firmware for certain consoles to ensure proper operation.
- Delay Settings:
Each model has its own delay settings defined by
HOLDandPATCHINGvalues. These delays are used for operations that require precise timing, such as BIOS patching.
Console-Specific Configurations
Each PlayStation model in the file has its own specific parameters:
- SCPH_102, SCPH_100, SCPH_7000_9000: Models with specific BIOS patching and delays.
- Trigger Values: Every model has unique
CHECKPOINTandTRIGGERvalues that help control specific operations for the PlayStation's booting and patching process.
Error Handling
The file includes checks to ensure that only one console model is selected at a time, preventing conflicts during compilation.
- Preprocessor Checks:
- If no console model is selected, or if multiple models are defined, compilation errors are triggered.