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.
This commit is contained in:
phistere
2021-05-25 17:40:09 -05:00
committed by pappeste
parent 19adbf2f41
commit 59254cc9e7
+2 -1
View File
@@ -643,7 +643,8 @@ namespace O3DELauncher
if (gEnv && gEnv->pConsole)
{
// Execute autoexec.cfg to load the initial level
AZ::Interface<AZ::IConsole>::Get()->ExecuteConfigFile("autoexec.cfg");
auto autoExecFile = AZ::IO::FixedMaxPath{pathToAssets} / "autoexec.cfg";
AZ::Interface<AZ::IConsole>::Get()->ExecuteConfigFile(autoExecFile.Native());
// Find out if console command file was passed
// via --console-command-file=%filename% and execute it