|
|
@@ -21,6 +21,7 @@
|
|
|
//
|
|
|
|
|
|
#include <Atomic/IO/Log.h>
|
|
|
+#include <Atomic/Engine/Application.h>
|
|
|
|
|
|
#include <Atomic/IPC/IPC.h>
|
|
|
#include <Atomic/IPC/IPCEvents.h>
|
|
|
@@ -262,18 +263,11 @@ bool EditorMode::PlayProjectInternal(const String &addArgs, bool debug)
|
|
|
if (debug)
|
|
|
vargs.Insert(0, "--debug");
|
|
|
|
|
|
- // If the debug hud up is up with metrics info, pass the --autometrics to player
|
|
|
- SystemUI::DebugHud* debugHud = GetSubsystem<SystemUI::DebugHud>();
|
|
|
-
|
|
|
- if (debugHud)
|
|
|
+ // forward autometrics to player
|
|
|
+ if (Application::GetAutoMetrics())
|
|
|
{
|
|
|
- if (debugHud->GetMode() & Atomic::SystemUI::DEBUGHUD_SHOW_PROFILER)
|
|
|
- {
|
|
|
- if (debugHud->GetProfilerMode() == DEBUG_HUD_PROFILE_METRICS)
|
|
|
- vargs.Insert(0, "--autometrics");
|
|
|
- }
|
|
|
+ vargs.Insert(0, "--autometrics");
|
|
|
}
|
|
|
-
|
|
|
if (addArgs.Length() > 0)
|
|
|
vargs.Insert(0, addArgs.Split(' '));
|
|
|
|