summaryrefslogtreecommitdiff
path: root/source/cl_main.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2010-02-23 16:53:58 +0000
committerAndrey Nazarov <skuller@skuller.net>2010-02-23 16:53:58 +0000
commit49d62599928630204e44d9ceb11d5a8a3fe88280 (patch)
tree538f31d0d59675cb54b50a8711872aad0b4f46e6 /source/cl_main.c
parent5bb84a6d33ed3b039bf1fbebc0e025390640bc66 (diff)
Cleaned up FS_Restart/FS_Shutdown code.
Made ‘fs_restart’ command cause full filesystem restart (including reloading of the basedir).
Diffstat (limited to 'source/cl_main.c')
-rw-r--r--source/cl_main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/cl_main.c b/source/cl_main.c
index 59a4c0a..fd868da 100644
--- a/source/cl_main.c
+++ b/source/cl_main.c
@@ -2270,11 +2270,11 @@ CL_RestartFilesystem
Flush caches and restart the VFS.
====================
*/
-void CL_RestartFilesystem( void ) {
+void CL_RestartFilesystem( qboolean total ) {
int cls_state;
if( !cl_running->integer ) {
- FS_Restart();
+ FS_Restart( total );
return;
}
@@ -2294,7 +2294,7 @@ void CL_RestartFilesystem( void ) {
if( cls.ref_initialized ) {
R_Shutdown( qfalse );
- FS_Restart();
+ FS_Restart( total );
R_Init( qfalse );
@@ -2304,7 +2304,7 @@ void CL_RestartFilesystem( void ) {
UI_Init();
#endif
} else {
- FS_Restart();
+ FS_Restart( total );
}
#if USE_UI
@@ -2372,7 +2372,7 @@ CL_LocalConnect
*/
void CL_LocalConnect( void ) {
if ( FS_NeedRestart() ) {
- CL_RestartFilesystem();
+ CL_RestartFilesystem( qfalse );
}
}