Rearrange when NativeInit starts so that BPS events are available for it.

This commit is contained in:
Sacha committed 2013-11-02 04:28:34 +10:00
1 parent 64e9c2088f
commit f5121df3be
1 file changed
+2 -2
+2 -2
View File
@@ -214,12 +214,12 @@ void BlackberryMain::startMain(int argc, char *argv[]) {
net::Init();
startDisplays();
NativeInit(argc, (const char **)argv, "/accounts/1000/shared/misc/", "app/native/assets/", "BADCOFFEE");
NativeInitGraphics();
screen_request_events(screen_cxt);
navigator_request_events(0);
dialog_request_events(0);
vibration_request_events(0);
NativeInit(argc, (const char **)argv, "/accounts/1000/shared/misc/", "app/native/assets/", "BADCOFFEE");
NativeInitGraphics();
audio = new BlackberryAudio();
runMain();
}