1
0
mirror of https://github.com/kalymos/PsNee.git synced 2026-01-11 23:53:07 +00:00
1
General Description of the settings.h
kalymos edited this page 2025-03-15 11:00:54 +01:00

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., SCEA for North America, SCEE for Europe, SCEI for Japan).
    • This allows the firmware to adapt according to the console's region.

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 HOLD and PATCHING values. 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 CHECKPOINT and TRIGGER values 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.