diff options
author | Craig Robbins <kde.psych@gmail.com> | 2015-04-01 23:01:28 +1000 |
---|---|---|
committer | Craig Robbins <kde.psych@gmail.com> | 2015-04-01 23:04:25 +1000 |
commit | 9527984dbcfc0a6cc7aa0470430cb6c3aa4103ba (patch) | |
tree | a06f321422fb501ea6c28571a9ac31bf7d09c43a /src/log.cpp | |
parent | 113bdd3ec0608655d1ab36886b4708bb8ccb7870 (diff) | |
download | hax-minetest-server-9527984dbcfc0a6cc7aa0470430cb6c3aa4103ba.tar.gz hax-minetest-server-9527984dbcfc0a6cc7aa0470430cb6c3aa4103ba.zip |
Move globals from main.cpp to more sane locations
Move debug streams to log.cpp|h
Move GUI-related globals to clientlauncher
Move g_settings and g_settings_path to settings.cpp|h
Move g_menuclouds to clouds.cpp|h
Move g_profiler to profiler.cpp|h
Diffstat (limited to 'src/log.cpp')
-rw-r--r-- | src/log.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/log.cpp b/src/log.cpp index 398c89eb0..e6d80db34 100644 --- a/src/log.cpp +++ b/src/log.cpp @@ -30,6 +30,20 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "porting.h" #include "config.h" +// Connection +std::ostream *dout_con_ptr = &dummyout; +std::ostream *derr_con_ptr = &verbosestream; + +// Server +std::ostream *dout_server_ptr = &infostream; +std::ostream *derr_server_ptr = &errorstream; + +#ifndef SERVER +// Client +std::ostream *dout_client_ptr = &infostream; +std::ostream *derr_client_ptr = &errorstream; +#endif + #ifdef __ANDROID__ unsigned int android_log_level_mapping[] = { /* LMT_ERROR */ ANDROID_LOG_ERROR, |