mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
Turn downloaded/ and custom/ into com_strings.h definitions, like sound path and saves path
This commit is contained in:
@@ -58,7 +58,7 @@ static inline const char *IdToDir( char *dir, size_t size, const char *id )
|
||||
|
||||
if( !Q_strcmp( id, "GAMEDOWNLOAD" ))
|
||||
{
|
||||
Q_snprintf( dir, size, "%s/downloaded", GI->gamefolder );
|
||||
Q_snprintf( dir, size, "%s/" DEFAULT_DOWNLOADED_DIRECTORY , GI->gamefolder );
|
||||
return dir;
|
||||
}
|
||||
|
||||
|
||||
@@ -1174,14 +1174,14 @@ void FS_AddGameHierarchy( const char *dir, uint flags )
|
||||
|
||||
if( isGameDir )
|
||||
{
|
||||
Q_snprintf( buf, sizeof( buf ), "%s/downloaded/", dir );
|
||||
Q_snprintf( buf, sizeof( buf ), "%s/" DEFAULT_DOWNLOADED_DIRECTORY, dir );
|
||||
FS_AddGameDirectory( buf, FS_NOWRITE_PATH | FS_CUSTOM_PATH );
|
||||
}
|
||||
Q_snprintf( buf, sizeof( buf ), "%s/", dir );
|
||||
FS_AddGameDirectory( buf, flags );
|
||||
if( isGameDir )
|
||||
{
|
||||
Q_snprintf( buf, sizeof( buf ), "%s/custom/", dir );
|
||||
Q_snprintf( buf, sizeof( buf ), "%s/" DEFAULT_CUSTOM_DIRECTORY, dir );
|
||||
FS_AddGameDirectory( buf, FS_NOWRITE_PATH | FS_CUSTOM_PATH );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user