1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-12-15 11:11:51 +00:00
tobspr_shapez.io/electron/src
Даниїл Григор'єв 6c3f91e587
Basic FS watcher for --load-mod mods
Add a --watch command line flag to be used in tandem with --load-mod.
Chokidar is used to detect file updates, and a page reload is triggered
when there are any changes to watched mod files. Only mods loaded via
--load-mod are affected.

This implementation has a minor issue with how cache is cleared -
removing disk cache is a bit too aggressive - but the only alternative I
could find is to use a non-persistent Electron session, which would get
rid of disk cache entirely (this is not a concern).
2025-06-12 15:22:15 +03:00
..
mods Basic FS watcher for --load-mod mods 2025-06-12 15:22:15 +03:00
config.ts Preliminary ASAR mods support in main process 2025-04-11 00:01:52 +03:00
fsjob.ts Clean up Electron wrapper code 2025-06-10 16:43:56 +03:00
index.ts Basic FS watcher for --load-mod mods 2025-06-12 15:22:15 +03:00
ipc.ts Remove main process compression 2025-06-10 12:15:38 +03:00