Jelajahi Sumber

AtomSampleViewerApplication standalone launch fix for changes to startup.

Signed-off-by: stankowi <[email protected]>
stankowi 3 tahun lalu
induk
melakukan
ac637b6921
1 mengubah file dengan 6 tambahan dan 0 penghapusan
  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();