Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Files watcher / Hot reload for gamemode #123

Open
Deewarz opened this issue Jan 12, 2025 · 2 comments
Open

Files watcher / Hot reload for gamemode #123

Deewarz opened this issue Jan 12, 2025 · 2 comments
Labels
enhancement New feature or request priority:medium question Further information is requested

Comments

@Deewarz
Copy link
Contributor

Deewarz commented Jan 12, 2025

Description

It would be great to have the server restart when files are modified in gamemode.


FYI: I believe there is still some code left on this from when Node.js was used.

cppfs::FileWatcher *_watcher;
Utils::Time::TimePoint _nextFileWatchUpdate;
int32_t _fileWatchUpdatePeriod = 1000;

bool _shouldReloadWatcher = false;

@Deewarz Deewarz added the enhancement New feature or request label Jan 12, 2025
@Deewarz Deewarz changed the title [Feature Request] [Scripting] File watcher / Hot reload for gamemode [Feature Request] [Scripting] Files watcher / Hot reload for gamemode Jan 12, 2025
@zpl-zak
Copy link
Member

zpl-zak commented Jan 12, 2025

We should revisit cppfs's file watcher now that the scripting engine rework is more or less done.

@Segfaultd Segfaultd added question Further information is requested priority:medium labels Jan 14, 2025
@Segfaultd Segfaultd changed the title [Feature Request] [Scripting] Files watcher / Hot reload for gamemode Files watcher / Hot reload for gamemode Jan 14, 2025
@Segfaultd
Copy link
Member

Yes. But it requires deeper work cuz it never properly worked on linux / mac environments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority:medium question Further information is requested
Projects
Status: No status
Development

No branches or pull requests

3 participants