This article's documentation is for anything that uses the Source engine. Click here for more information.

$cd: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(still exists in "modern" source)
Line 1: Line 1:
{{tabsBar|main=gs|base=$cd}}
{{tabsBar|main=gs|base=$cd}}
{{stub}}
{{stub}}
{{this is a|QC command|engine=source|before=Source 2006}}
{{this is a|QC command|engine=source|name=$cd}} Dictates the base working directory.
 
{{deprecated|The base working directory defaults to the same folder as the QC script, which is usually what is desired. This command can still be used (only once!) if a different base working directory is desired. Since {{src06}}, [[$pushd and $popd]] can be used if different source files need different working directories.}}
[[Category:QC commands]]
[[Category:QC commands]]

Revision as of 17:35, 3 April 2025

Stub

This article or section is a stub. You can help by expanding it.

$cd is a QC command available in all Source Source games. Dictates the base working directory.

Obsolete-notext.pngDeprecated:The base working directory defaults to the same folder as the QC script, which is usually what is desired. This command can still be used (only once!) if a different base working directory is desired. Since Source 2006, $pushd and $popd can be used if different source files need different working directories.