From 59254cc9e795d2936fa336e8c9d3585d56d45ffd Mon Sep 17 00:00:00 2001 From: phistere Date: Tue, 25 May 2021 17:40:09 -0500 Subject: [PATCH] Update Launcher to find the autoexec.cfg in assets Was looking in the engine root for the autoexec.cfg, changed it to use the project assets path. --- Code/LauncherUnified/Launcher.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Code/LauncherUnified/Launcher.cpp b/Code/LauncherUnified/Launcher.cpp index d0e950c1ad..922397c325 100644 --- a/Code/LauncherUnified/Launcher.cpp +++ b/Code/LauncherUnified/Launcher.cpp @@ -643,7 +643,8 @@ namespace O3DELauncher if (gEnv && gEnv->pConsole) { // Execute autoexec.cfg to load the initial level - AZ::Interface::Get()->ExecuteConfigFile("autoexec.cfg"); + auto autoExecFile = AZ::IO::FixedMaxPath{pathToAssets} / "autoexec.cfg"; + AZ::Interface::Get()->ExecuteConfigFile(autoExecFile.Native()); // Find out if console command file was passed // via --console-command-file=%filename% and execute it