Преглед изворни кода

Merge pull request #265 from aws-lumberyard-dev/Helios_CherryPick_StartupFix

AtomSampleViewerApplication standalone launch fix for changes to starup
AMZN-stankowi пре 3 година
родитељ
комит
a903682ec4
1 измењених фајлова са 6 додато и 0 уклоњено
  1. 6 0
      Standalone/Platform/Common/AtomSampleViewerApplication.cpp

+ 6 - 0
Standalone/Platform/Common/AtomSampleViewerApplication.cpp

@@ -9,6 +9,7 @@
 #include <AtomSampleViewerApplication.h>
 #include <AtomSampleViewerApplication.h>
 #include <SampleComponentManagerBus.h>
 #include <SampleComponentManagerBus.h>
 
 
+#include <AzCore/Component/ComponentApplicationLifecycle.h>
 #include <AzCore/PlatformIncl.h>
 #include <AzCore/PlatformIncl.h>
 #include <AzCore/Component/ComponentApplication.h>
 #include <AzCore/Component/ComponentApplication.h>
 #include <AzCore/Debug/Trace.h>
 #include <AzCore/Debug/Trace.h>
@@ -92,6 +93,11 @@ namespace AtomSampleViewer
 
 
         AzFramework::Application::StartCommon(systemEntity);
         AzFramework::Application::StartCommon(systemEntity);
 
 
+        if (auto settingsRegistry = AZ::SettingsRegistry::Get(); settingsRegistry != nullptr)
+        {
+            AZ::ComponentApplicationLifecycle::SignalEvent(*settingsRegistry, "LegacySystemInterfaceCreated", R"({})");
+        }
+
         ReadTimeoutShutdown();
         ReadTimeoutShutdown();
 
 
         WriteStartupLog();
         WriteStartupLog();