Split intercom.h into separate headers and reduce shared header inclusion.
This commit is contained in:
+11
-11
@@ -34,7 +34,6 @@
|
||||
#include "sourcemm_api.h"
|
||||
#include "sm_globals.h"
|
||||
#include "sm_autonatives.h"
|
||||
#include "logic/intercom.h"
|
||||
#include "sm_stringutil.h"
|
||||
#include "Logger.h"
|
||||
#include "TimerSys.h"
|
||||
@@ -59,6 +58,9 @@
|
||||
#endif
|
||||
#include <amtl/os/am-shared-library.h>
|
||||
#include <amtl/os/am-path.h>
|
||||
#include <bridge/include/IVEngineServerBridge.h>
|
||||
#include <bridge/include/IPlayerInfoBridge.h>
|
||||
#include <bridge/include/IFileSystemBridge.h>
|
||||
|
||||
#if defined _WIN32
|
||||
# define MATCHMAKINGDS_SUFFIX ""
|
||||
@@ -297,17 +299,15 @@ static const char* get_core_config_value(const char* key)
|
||||
return g_CoreConfig.GetCoreConfigValue(key);
|
||||
}
|
||||
|
||||
static DatabaseInfo keyvalues_to_dbinfo(KeyValues *kv)
|
||||
static void keyvalues_to_dbinfo(KeyValues *kv, DatabaseInfo *out)
|
||||
{
|
||||
DatabaseInfo info;
|
||||
info.database = kv->GetString("database", "");
|
||||
info.driver = kv->GetString("driver", "default");
|
||||
info.host = kv->GetString("host", "");
|
||||
info.maxTimeout = kv->GetInt("timeout", 0);
|
||||
info.pass = kv->GetString("pass", "");
|
||||
info.port = kv->GetInt("port", 0);
|
||||
info.user = kv->GetString("user", "");
|
||||
return info;
|
||||
out->database = kv->GetString("database", "");
|
||||
out->driver = kv->GetString("driver", "default");
|
||||
out->host = kv->GetString("host", "");
|
||||
out->maxTimeout = kv->GetInt("timeout", 0);
|
||||
out->pass = kv->GetString("pass", "");
|
||||
out->port = kv->GetInt("port", 0);
|
||||
out->user = kv->GetString("user", "");
|
||||
}
|
||||
|
||||
static int get_activity_flags()
|
||||
|
||||
Reference in New Issue
Block a user