summaryrefslogtreecommitdiff
path: root/source/q_shared.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2007-09-15 18:09:56 +0000
committerAndrey Nazarov <skuller@skuller.net>2007-09-15 18:09:56 +0000
commitbc38392eb1e7b219e3b3814934c530a028587dbd (patch)
tree481cddd35aea6875d7d55cdccfadc2c3696f9b51 /source/q_shared.c
parentf1d3f84f3be83dc13b3a066b34d99b15716a1b6c (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.c6
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