From ca1ea17f0de63d8e2f875bf314199f21b303b068 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Mon, 1 Sep 2025 16:59:26 +0100 Subject: [PATCH] Add const to FS_CreatePath argument --- code/qcommon/files.c | 2 +- code/qcommon/qcommon.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/qcommon/files.c b/code/qcommon/files.c index 1bbbcc82..53751e72 100644 --- a/code/qcommon/files.c +++ b/code/qcommon/files.c @@ -543,7 +543,7 @@ FS_CreatePath Creates any directories needed to store the given filename ============ */ -qboolean FS_CreatePath (char *OSPath) { +qboolean FS_CreatePath (const char *OSPath) { char *ofs; char path[MAX_OSPATH]; diff --git a/code/qcommon/qcommon.h b/code/qcommon/qcommon.h index 6ce1336c..00592f9b 100644 --- a/code/qcommon/qcommon.h +++ b/code/qcommon/qcommon.h @@ -625,7 +625,7 @@ void FS_FreeFileList( char **list ); qboolean FS_FileExists( const char *file ); -qboolean FS_CreatePath (char *OSPath); +qboolean FS_CreatePath (const char *OSPath); int FS_FindVM(void **startSearch, char *found, int foundlen, const char *name, int enableDll);