diff options
author | Andrey Nazarov <skuller@skuller.net> | 2007-09-15 18:09:56 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2007-09-15 18:09:56 +0000 |
commit | bc38392eb1e7b219e3b3814934c530a028587dbd (patch) | |
tree | 481cddd35aea6875d7d55cdccfadc2c3696f9b51 /source/q_shared.c | |
parent | f1d3f84f3be83dc13b3a066b34d99b15716a1b6c (diff) |
Allow quake paths up to MAX_OSPATH characters at VFS level.
Modified demo recording and playback functions to support longer pathnames.
Diffstat (limited to 'source/q_shared.c')
-rw-r--r-- | source/q_shared.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/q_shared.c b/source/q_shared.c index 3dc313e..8e12ecf 100644 --- a/source/q_shared.c +++ b/source/q_shared.c @@ -834,6 +834,12 @@ void COM_DefaultExtension( char *path, const char *extension, int pathSize ) { Q_strcat( path, pathSize, extension ); } +void COM_AppendExtension( char *path, const char *extension, int pathSize ) { + if( !Q_stricmp( COM_FileExtension( path ), extension ) ) { + Q_strcat( path, pathSize, extension ); + } +} + /* ================== COM_IsNumeric |