mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-27 10:38:46 -04:00
5b00d497e4
Add a settings.toml override layer read at boot (next to the exe), plus two config-driven runtime knobs feeding the GL/shadow merges. config_loader: parse [video] crt_filter (raw/crt/composite/trinitron -> 0..3) into video_screen_kind and [audio] spu_hq into audio_spu_hq; add UserSettings + load_user_settings()/save_user_settings() (best-effort, never throws; hand-written TOML). gpu: gpu_set_screen_kind(int); screen_lut_ensure() precedence is PSX_SCREEN env > config, default raw stays byte-identical. spu_shadow: spu_shadow_set_enabled(int); env PSX_AUDIO_SHADOW > config. main.cpp: g_video_screen + g_audio_spu_hq globals from game.toml; load <exe_dir>/settings.toml overriding renderer/SS/AA/texfilter/screen + spu_hq + bios/disc (CLI --bios/--disc still win); call setters at init. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>