mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-10-16 23:49:19 +02:00
c7853f658889599af51ae93800d261b30643f5cc
Shaders: drop ApplyHdrShader and FindBundled. The Pascal starter only copied starter/Reinhard.glsl over shaders/tonemapping.glsl when the user picked an operator in the HDR combo (uSettings.pas ChangeHDR, its only caller being cbHDRChange), never on an ordinary save. We ran it from SaveTo, so every save replaced the file the game ships. That file has been tracked in the game repo since 2020 and now defaults to AgX, so overwriting it with a 2021-vintage Reinhard was a two-generation downgrade that also lost the NaN/Inf sanitize. Also comments out gfx.postfx.tonemapping on save; the engine has no such key. Executable: ResolveExecutable now validates its pick (file exists, has an execute bit outside Windows, and the MZ/ELF header matches the running OS) and returns the first candidate that passes instead of the first that matches by name. .exe is no longer a Linux candidate - a Steam install with the native binary still zipped would otherwise resolve to the Windows PE. On failure the problem reaches the caller, and MainWindow shows it instead of swallowing the exception, so a launch that does nothing is no longer silent. A manual pick whose file is temporarily missing is kept in the combo rather than falling back to auto and being overwritten on the next save. Claude-Session: https://claude.ai/code/session_01HamVNWE9mwmz1vs2iEpNQq
Description
Languages
C#
100%