1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-13 13:31:48 +00:00

Implement the %command% placeholder in the Main Run Args setting

This can be used to tell Godot to run an executable that will run Godot
rather than running Godot directly. This is useful to make Godot start
on the dedicated GPU when using a NVIDIA Optimus setup on Linux:
`prime-run %command%`

The `editor/run/main_run_args` setting declaration was moved to make it
visible in the ProjectSettings documentation.
This commit is contained in:
Hugo Locurcio
2020-02-07 19:51:50 +01:00
parent a33a8f1e29
commit ce4aa07276
5 changed files with 51 additions and 8 deletions

View File

@@ -5877,8 +5877,6 @@ EditorNode::EditorNode() {
register_exporters();
GLOBAL_DEF("editor/run/main_run_args", "");
ClassDB::set_class_enabled("RootMotionView", true);
//defs here, use EDITOR_GET in logic