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.
|
* This file is part of 0 A.D.
|
||||||
*
|
*
|
||||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
* 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 = NULL;
|
||||||
MessagePasser* AtlasMessage::g_MessagePasser = &msgPasser;
|
|
||||||
|
|
||||||
|
|
||||||
static InputProcessor g_Input;
|
static InputProcessor g_Input;
|
||||||
@ -118,6 +117,10 @@ bool BeginAtlas(const CmdLineArgs& args, const DllLoader& dll)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Construct a message passer for communicating with Atlas
|
||||||
|
MessagePasserImpl msgPasser;
|
||||||
|
AtlasMessage::g_MessagePasser = &msgPasser;
|
||||||
|
|
||||||
// Pass our message handler to Atlas
|
// Pass our message handler to Atlas
|
||||||
Atlas_SetMessagePasser(&msgPasser);
|
Atlas_SetMessagePasser(&msgPasser);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user