mirror of
https://github.com/Darkrock-Studios/hammer-editor.git
synced 2026-08-04 15:19:46 +00:00
Scene and group titles are stored wrapped as `order~name~id`, so a leading dot or a Windows reserved word (CON, PRN, COM0-9, LPT0-9, ...) can never collide on disk for them — yet name validation rejected them as if the title were a raw filesystem basename. Project names, which become directories verbatim, keep the strict rules. - ProjectNameValidator.validate gains usedAsRawFilename (default true); the leading-dot and reserved-name checks now only apply to raw filenames. Trailing dot/space stay rejected for everyone (the on-disk encoder strips them). Reserved set extended with COM0/LPT0. - Thread the flag through ProjectsRepository.validateFileName and SceneRepository.validateSceneName. - Consolidate the six naming dialogs onto a shared rememberNameValidation hook keyed by NameKind (Project vs SceneItem), so strictness lives in one place instead of a per-call-site boolean. |
||
|---|---|---|
| .. | ||
| src | ||
| build.gradle.kts | ||