Skip to content

Fix CVar saves + add fork-specific CVars#6667

Open
metalgearsloth wants to merge 6 commits into
space-wizards:masterfrom
metalgearsloth:2026-05-25-cvars
Open

Fix CVar saves + add fork-specific CVars#6667
metalgearsloth wants to merge 6 commits into
space-wizards:masterfrom
metalgearsloth:2026-05-25-cvars

Conversation

@metalgearsloth

Copy link
Copy Markdown
Contributor

see Space-Wizards-Federation/RobustToolbox#150

  • Added fork flag for flags you might want to save only on your fork.
  • Avoids saving server-flags on client and vice-versa.
  • Makes it actually use the VFS instead of direct file calls
  • Needs Respath + VFS changes #6666 merged first

Standardises VFS a lot more with the actual file-system validation.
Add "IsValidFilePath" as a counterpart to "Clean" that avoids doing any traversal above the root.
Want these to do some CVar stuff on fork-specific CVar files.
- Should be backwards compat.
- Saves fork-specific data into its own config so they don't bulldoze each other. Technically forks can re-use build IDs but I didn't see it as a huge deal?
- Avoids saving server CVars on client and vice versa (client is absolutely spammed with these).
- Avoids the sussy raw File calls and uses the UserData variable like a good soldier.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant