Skip to content

Commit

Permalink
Document new ROBUST_CVAR_ prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
PJB3005 committed Apr 4, 2024
1 parent 2a3fa41 commit 4291901
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/en/general-development/tips/config-file-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ if you want to find a reference of all CVars available in the game/engine, your
* You can use the `cvar` command to view and set CVars at runtime. Note that not all CVars support changing them live: effects may include it working fine, server exploding, or nothing happening.
* You can pass `--cvar foo.bar=123` as command line argument to the client or server to override a CVar at start time. This also overrides any values set in config files.
* You can use the `ROBUST_CVARS` environment variable, which is semicolon-sepated like so: `ROBUST_CVARS=foo.bar=1234;foo.baz=hello there`. You probably don't want to accept any insecure input into this, since it's pretty basic and can't be escaped properly.
* You can specify CVars via multiple environment variables with the `ROBUST_CVAR_` prefix (note the lack of plural from above). For example `ROBUST_CVAR_game__hostname=foobar`. A double underscore (`__`) is replaced with a `.`.

0 comments on commit 4291901

Please sign in to comment.