Incorporating review comments. Adding nativeUI setting for launchers.
This commit is contained in:
@@ -573,6 +573,14 @@ namespace O3DELauncher
|
||||
AZ_Assert(AZ::AllocatorInstance<AZ::SystemAllocator>::IsReady(), "System allocator was not created or creation failed.");
|
||||
//Initialize the Debug trace instance to create necessary environment variables
|
||||
AZ::Debug::Trace::Instance().Init();
|
||||
|
||||
if (!IsDedicatedServer() && !systemInitParams.bToolMode && !systemInitParams.bTestMode)
|
||||
{
|
||||
if (auto nativeUI = AZ::Interface<AZ::NativeUI::NativeUIRequests>::Get(); nativeUI != nullptr)
|
||||
{
|
||||
nativeUI->SetMode(AZ::NativeUI::Mode::ENABLED);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (mainInfo.m_onPostAppStart)
|
||||
@@ -647,6 +655,11 @@ namespace O3DELauncher
|
||||
|
||||
ReturnCode status = ReturnCode::Success;
|
||||
|
||||
if (auto nativeUI = AZ::Interface<AZ::NativeUI::NativeUIRequests>::Get(); nativeUI != nullptr)
|
||||
{
|
||||
nativeUI->DisplayOkDialog("Test", "Test", false);
|
||||
}
|
||||
|
||||
if (systemInitParams.pSystem)
|
||||
{
|
||||
// Process queued events before main loop.
|
||||
|
||||
Reference in New Issue
Block a user