d1972f7893a64d049157c67601428011db895a04
Unlike inotify, Windows and BSD require manual state snapshots to detect specific file changes. This refactor standardizes that manual handling to ensure it is resource-safe and easy to follow. - Fix memory leaks in platform_directory_watch_check where temporary buffers (new_snaps, file_list) were not reliably freed on 'phantom' triggers or error paths. - Unify control flow using a 'goto' cleanup pattern to ensure deterministic resource deallocation. - Synchronizes the manual snapshot comparison logic between Windows and BSD to ensure identical LOAD/RELOAD/UNLOAD event behavior. - Simplifies the platform_directory_init_scan logic by removing redundant directory rewinds and nested checks. - Add WIN32_LEAN_AND_MEAN to optimize Windows header inclusion. - Align internal API signatures (is_module_loaded) for consistency.
stk (Stalwart Toolkit)
stk is a lightweight, modular toolkit for building games and game engines. It provides a portable foundation for dynamically loading modules, native or WASM, without enforcing any architecture or design choices.
It is designed to run on modern systems running POSIX and Windows.
Key Features
- Dynamic module loading (native
.so/.dll) - Hot-swapping of modules at runtime
- Optional WASM support for multi-language modules
- Developer tools: lightweight metadata, logging/tracing, and dependency management
- Minimal, portable API
stk is non-opinionated: developers control architecture, engine design, and game logic while relying on a predictable, lean foundation.
Languages
C
88.3%
Makefile
10.8%
Shell
0.9%