$cd (GoldSrc): Difference between revisions
Jump to navigation
Jump to search
Important:(in all games since
) For
Source, starting directory is inferred to be QC file location, with $pushd and $popd being used to change the directory instead.
Thunder4ik (talk | contribs) m (→top: clean up, replaced: {{goldsrc → {{gldsrc (2)) |
SirYodaJedi (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{gldsrc topicon}} | {{gldsrc topicon}} | ||
{{tabsBar|main=gs|base=$cd}} | |||
{{gldsrc|only}}{{src|not|addtext={{src04|in|addtext-front=''except''}}}}<br> Used to set the current working directory for the QC script. | {{gldsrc|only}}{{src|not|addtext={{src04|in|addtext-front=''except''}}}}<br> Used to set the current working directory for the QC script. | ||
Revision as of 16:35, 17 September 2024
(only in )(not in
(except'in
))
Used to set the current working directory for the QC script.



Description
$cd "path/to/files/"
The default working directory will be the folder of the .qc file.
Parameters
- The path should be a full or relative path on the file system.