Skip to content

Allow shader or image paths with messed up slashes#1963

Merged
slipher merged 2 commits intoDaemonEngine:masterfrom
slipher:slashpath
May 1, 2026
Merged

Allow shader or image paths with messed up slashes#1963
slipher merged 2 commits intoDaemonEngine:masterfrom
slipher:slashpath

Conversation

@slipher
Copy link
Copy Markdown
Member

@slipher slipher commented Apr 30, 2026

Useful for Smokin' Guns assets

slipher added 2 commits April 29, 2026 22:13
When names are looked up in hash tables, the equality testing is done
with stricmp; there is no special behavior for backslashes. So it is
wrong to treat them specially in the hash function: the hashing and
equality functions should go hand-in-hand.
Remove initial slashes or multiple consecutive slashes and convert \ to
/ when looking up shaders or images. Useful for Smokin' Guns assets.
@illwieckz
Copy link
Copy Markdown
Member

Great! Being more compatible with legacy assets is a good thing. 😍️

And making it more compatible with Smokin' Guns is awesome. 🤠️

@slipher slipher merged commit e80ec08 into DaemonEngine:master May 1, 2026
9 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Smokin' Guns May 1, 2026
@slipher slipher deleted the slashpath branch May 1, 2026 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants