1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-12-16 11:41:50 +00:00
tobspr_shapez.io/electron/src
cody-ferguson 0167b9d6a0
Handle directories in mod protocol handler (#87)
* Handle directories in mod protocol handler
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.

* Make directory index work with ASAR archives

Also fix directory index having higher priority than normal requests and
simplify URL handling.

---------

Co-authored-by: Даниїл Григор'єв <dengr1065@gmail.com>
2025-07-01 20:30:55 +03:00
..
mods Handle directories in mod protocol handler (#87) 2025-07-01 20:30:55 +03:00
config.ts Do not automatically open devtools 2025-06-19 04:54:20 +03:00
fsjob.ts Clean up Electron wrapper code 2025-06-10 16:43:56 +03:00
index.ts Do not automatically open devtools 2025-06-19 04:54:20 +03:00
ipc.ts Remove main process compression 2025-06-10 12:15:38 +03:00