-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CApplicationMessenger] Move RegisterReceiver(...) from CApplication:…
…:Initialize(...) to CApplication::Create(...), which connects CApplicationMessenger receivers earlier
- Loading branch information
1 parent
3a47349
commit 161e359
Showing
1 changed file
with
7 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -447,6 +447,13 @@ bool CApplication::Create() | |
SetupNetwork(); | ||
Preflight(); | ||
|
||
// here we register all global classes for the CApplicationMessenger, | ||
// after that we can send messages to the correspnding modules | ||
CApplicationMessenger::Get().RegisterReceveiver(this); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
AchimTuran
Author
Member
|
||
CApplicationMessenger::Get().RegisterReceveiver(&g_playlistPlayer); | ||
CApplicationMessenger::Get().RegisterReceveiver(&g_infoManager); | ||
CApplicationMessenger::Get().RegisterReceveiver(&g_AEDSPManager); | ||
|
||
for (int i = RES_HDTV_1080i; i <= RES_PAL60_16x9; i++) | ||
{ | ||
g_graphicsContext.ResetScreenParameters((RESOLUTION)i); | ||
|
@@ -1135,10 +1142,6 @@ bool CApplication::Initialize() | |
CDirectory::Create("special://xbmc/sounds"); | ||
} | ||
|
||
CApplicationMessenger::Get().RegisterReceveiver(this); | ||
CApplicationMessenger::Get().RegisterReceveiver(&g_playlistPlayer); | ||
CApplicationMessenger::Get().RegisterReceveiver(&g_infoManager); | ||
|
||
// load the language and its translated strings | ||
if (!LoadLanguage(false)) | ||
return false; | ||
|
RegisterReceveiver -> really?
RegisterReceiver