Skip to content

Conversation

@codeman4033
Copy link
Collaborator

This is a simple change that could allow for automating file loading in mods.

Previously we would return an error about a file not existing, which kinda makes sense, considering a directory isn't a file.
Now with this commit, if the url resolve to a directory, it will return a json array with the relative paths of the file in that directory.
Previously we would return an error about a file not existing, which kinda makes sense, considering a directory isn't a file.
Now with this commit, if the url resolve to a directory, it will return a json array with the relative paths of the file in that directory.
@codeman4033 codeman4033 added enhancement New feature or request e: electron and removed e: electron labels Jul 1, 2025
Also fix directory index having higher priority than normal requests and
simplify URL handling.
@dengr1065 dengr1065 merged commit 0167b9d into tobspr-games:master Jul 1, 2025
1 check passed
@codeman4033 codeman4033 deleted the mod-protocol-directories branch July 1, 2025 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

e: electron enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants