You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
o3de/Code/Editor/Lib/Tests
lumberyard-employee-dm 669caca9cc
Updated Launching of Lua Editor to supply the project-path (#7706)
* Updated Launching of Lua Editor to supply the project-path

The Lua Launch logic also uses the AzFramework ProcessLauncher instead
of Qt. This has the benefit of being able to pass arguments as an array
instead of in a single string. Therefore paths with spaces in them also
work.

Tweak the Settings Registry logic to locate the
project-path/engine-path by scanning upwards for a
project.json/engine.json respectively to inject the found paths to the
front of the command line parameters instead of the back.
This has the effect of making sure that command line parameters for the
project-path/engine-path always takes precedence over scanning upwards
for a project.json/engine.json.

Signed-off-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com>

* Removed prepend of EngineRoot in CheckProjectPathProvided

The Editor would attempt to validate that the project path supplied via
the command line contained a valid project.json file before contining
the Editor startup flow.

This was taking the engine root path and appending the project path to
it, which works when the project path is absolute

But when the project path is relative it is treated as relative to the
current working directory by the SettingsRegistry, but the logic in the
CheckProjectPathProvided was treating it has relative to the engine
root. Therefore supplying a relative path as part of the Editor.exe
launch command would fail.

Signed-off-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com>

* Fixed resolving of relative paths to absolute paths in the Editor

The Editor was changing the current working directory to the nearest
ancestor directory containing an `engine.json` file.
This resulted in the ConvertToAbsolutePath function resolving relative
paths to that directory instead of the launch directory of the Editor.

Signed-off-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com>
4 years ago
..
Camera Prevent the camera from easily being set to an invalid orientation (#6203) 4 years ago
IEditorMock.h Removed legacy/unused IEventLoopHook 4 years ago
test_CryEditDocPythonBindings.cpp Enables memory tracking (leak detection) in more unit tests 4 years ago
test_CryEditPythonBindings.cpp Updated Launching of Lua Editor to supply the project-path (#7706) 4 years ago
test_DisplaySettingsPythonBindings.cpp Updated AnimNode registration in LyShine and Maestro to register to a member variable map (#6786) 4 years ago
test_EditorPythonBindings.cpp Removes ILogMock from CryCommon/Mocks 4 years ago
test_EditorUtils.cpp Enables memory tracking (leak detection) in more unit tests 4 years ago
test_Main.cpp Merged the Editor.Camera.Tests with the Editor.Tests (#5463) 4 years ago
test_MainWindowPythonBindings.cpp Enables memory tracking (leak detection) in more unit tests 4 years ago
test_ModularViewportCameraController.cpp chore: remove unused setting and fixed compiling errors 4 years ago
test_ObjectManagerPythonBindings.cpp Enables memory tracking (leak detection) in more unit tests 4 years ago
test_TerrainHoleToolPythonBindings.cpp Enables memory tracking (leak detection) in more unit tests 4 years ago
test_TerrainLayerPythonBindings.cpp Enables memory tracking (leak detection) in more unit tests 4 years ago
test_TerrainModifyPythonBindings.cpp Enables memory tracking (leak detection) in more unit tests 4 years ago
test_TerrainPainterPythonBindings.cpp Enables memory tracking (leak detection) in more unit tests 4 years ago
test_TerrainPythonBindings.cpp Enables memory tracking (leak detection) in more unit tests 4 years ago
test_TerrainTexturePythonBindings.cpp Enables memory tracking (leak detection) in more unit tests 4 years ago
test_TrackViewPythonBindings.cpp Enables memory tracking (leak detection) in more unit tests 4 years ago
test_ViewPanePythonBindings.cpp Removes some leftover log 4 years ago
test_ViewportManipulatorController.cpp Rename QtEventToAzInputManager.h/cpp to QtEventToAzInputMapper.h/cpp (#5905) 4 years ago
test_ViewportTitleDlgPythonBindings.cpp Enables memory tracking (leak detection) in more unit tests 4 years ago