Add zone callback for client messages so log messages can be piped to it

This commit is contained in:
Akkadius
2015-01-12 20:11:23 -06:00
parent 08a23265f8
commit 9d355f0f99
6 changed files with 20 additions and 3 deletions
+2
View File
@@ -45,6 +45,7 @@
#include "../common/spdat.h"
#include "../common/eqemu_logsys.h"
#include "client_logs.h"
#include "zone_config.h"
#include "masterentity.h"
#include "worldserver.h"
@@ -115,6 +116,7 @@ extern void MapOpcodes();
int main(int argc, char** argv) {
RegisterExecutablePlatform(ExePlatformZone);
logger.LoadLogSettings();
logger.OnLog(&ClientLogs::ClientMessage);
set_exception_handler();
const char *zone_name;