forked from 0ad/0ad
Delay construction of Atlas message passer
This was SVN commit r7793.
This commit is contained in:
parent
9f6eb626b4
commit
16f70cfe4c
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2009 Wildfire Games.
|
||||
/* Copyright (C) 2010 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@ -63,8 +63,7 @@ namespace AtlasMessage
|
||||
}
|
||||
|
||||
|
||||
static MessagePasserImpl msgPasser;
|
||||
MessagePasser* AtlasMessage::g_MessagePasser = &msgPasser;
|
||||
MessagePasser* AtlasMessage::g_MessagePasser = NULL;
|
||||
|
||||
|
||||
static InputProcessor g_Input;
|
||||
@ -118,6 +117,10 @@ bool BeginAtlas(const CmdLineArgs& args, const DllLoader& dll)
|
||||
return false;
|
||||
}
|
||||
|
||||
// Construct a message passer for communicating with Atlas
|
||||
MessagePasserImpl msgPasser;
|
||||
AtlasMessage::g_MessagePasser = &msgPasser;
|
||||
|
||||
// Pass our message handler to Atlas
|
||||
Atlas_SetMessagePasser(&msgPasser);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user