Skip to content

Comments

Fix loading shaders from the command line#2360

Merged
LukeUsher merged 1 commit intoares-emulator:masterfrom
remutro:shader-arg-fix
Jan 8, 2026
Merged

Fix loading shaders from the command line#2360
LukeUsher merged 1 commit intoares-emulator:masterfrom
remutro:shader-arg-fix

Conversation

@remutro
Copy link
Contributor

@remutro remutro commented Jan 8, 2026

When a shader was specified as a command line argument, it would result in the loadShaders() function calling itself in a continuous loop with no exit. Processing the presence of the --shader command line argument will now only occur once. Additionally, the shader name stored in the settings.bml file should not include a full path, it should be relative to the shader directory, minus the slangp extension.

This impacted all platforms, not just Windows (the issue was opened against Windows).

Fixes: #2141

@LukeUsher LukeUsher merged commit 17ce1bb into ares-emulator:master Jan 8, 2026
14 checks passed
@remutro remutro deleted the shader-arg-fix branch January 8, 2026 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Program freezes if --shader parameter is used in WIndows 11

2 participants