From e9440a86122fcc55a4fd572e2ba891c90d904fe0 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 15 Jun 2025 11:08:09 +0500 Subject: [PATCH] filesystem: fix folder exists check in RoDir --- filesystem/filesystem.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/filesystem/filesystem.c b/filesystem/filesystem.c index b7e17a1c..417a6dd0 100644 --- a/filesystem/filesystem.c +++ b/filesystem/filesystem.c @@ -1705,7 +1705,8 @@ qboolean FS_InitStdio( qboolean unused_set_to_true, const char *rootdir, const c for( i = 0; i < dirs.numstrings; i++ ) { - if( !FS_SysFolderExists( dirs.strings[i] )) + Q_snprintf( buf, sizeof( buf ), "%s/%s", fs_rodir, dirs.strings[i] ); + if( !FS_SysFolderExists( buf )) continue; if( FI.games[FI.numgames] == NULL )