Commit Graph

6 Commits

Author SHA1 Message Date
nocode 082ff3eedd chore(loader): enable bladw_announcement module loading
Change root configuration from "none" (disabled) to "bladw_announcement*" to enable automatic loading of announcement modules.
2026-07-20 18:23:30 +02:00
nocode dc2835b11b refactor(loader): refactor font creation and add root pattern validation
- Refactor font creation into a loop-based approach to reduce code duplication
- Add validation for root pattern with support for "none" value to disable the loader
- Store root pattern in local variable for consistent usage throughout the module
- Add early return when loader is disabled to prevent unnecessary processing
- Improve code organization with clearer section comments
- Change default root from "bladw_announcement" to "none" (disabled state)
2026-07-20 17:17:57 +02:00
nocode f6ec6b1236 refactor(loader): replace manual loader with generic recursive autoloader system
Replace the hardcoded module loader with a flexible, recursive autoloader (NoCode) that:

- Supports glob patterns (wildcards) for module discovery
- Recursively scans folders without depth limits
- Properly handles shared (sh_), server (sv_), and client (cl_) file prefixes
- Implements safe loading with error handling and statistics
- Searches both LUA and GAME paths simultaneously
- Sends library files to clients without auto-including them
- Adds comprehensive logging with color-coded output
- Excludes configured files/folders (template.lua, _dev, disabled)

The new system is more maintainable and allows adding new modules without modifying the loader.
2026-07-20 13:47:39 +02:00
xyoss 75428ef21d ajout de commentaire sur le code 2026-06-27 08:18:07 +02:00
xyoss 875954ac63 ajout de la lib rndx 2026-06-24 10:42:14 +02:00
xyoss d3fae3aff5 first commit 2026-06-23 11:41:04 +02:00