aboutsummaryrefslogtreecommitdiff
path: root/sp/src/public/filesystem_init.cpp
diff options
context:
space:
mode:
authorJoe Ludwig <[email protected]>2013-07-04 11:20:31 -0700
committerJoe Ludwig <[email protected]>2013-07-04 11:20:31 -0700
commit77b376f8a0d8d172c51729762f80bb394534aa41 (patch)
tree79897a015745704f7202eaa6648c18f2e5312df4 /sp/src/public/filesystem_init.cpp
parentAdding a CONTRIBUTING file so the rights that GitHub users grant to Valve wit... (diff)
downloadsource-sdk-2013-77b376f8a0d8d172c51729762f80bb394534aa41.tar.xz
source-sdk-2013-77b376f8a0d8d172c51729762f80bb394534aa41.zip
* Switched the SDK from checked-in projects to VPC, the Valve Project Creator. See the Getting Started document on the wiki for details.
* Pulled in bug fixes from HL2 and HL2MP.
Diffstat (limited to 'sp/src/public/filesystem_init.cpp')
-rw-r--r--sp/src/public/filesystem_init.cpp14
1 files changed, 3 insertions, 11 deletions
diff --git a/sp/src/public/filesystem_init.cpp b/sp/src/public/filesystem_init.cpp
index 5ca97fb3..2f8366e4 100644
--- a/sp/src/public/filesystem_init.cpp
+++ b/sp/src/public/filesystem_init.cpp
@@ -1407,17 +1407,9 @@ void FileSystem_ClearSteamEnvVars()
void FileSystem_AddSearchPath_Platform( IFileSystem *pFileSystem, const char *szGameInfoPath )
{
char platform[MAX_PATH];
- if ( pFileSystem->IsSteam() )
- {
- // Steam doesn't support relative paths
- Q_strncpy( platform, "platform", MAX_PATH );
- }
- else
- {
- Q_strncpy( platform, szGameInfoPath, MAX_PATH );
- Q_StripTrailingSlash( platform );
- Q_strncat( platform, "/../platform", MAX_PATH, MAX_PATH );
- }
+ Q_strncpy( platform, szGameInfoPath, MAX_PATH );
+ Q_StripTrailingSlash( platform );
+ Q_strncat( platform, "/../platform", MAX_PATH, MAX_PATH );
pFileSystem->AddSearchPath( platform, "PLATFORM" );
}