diff options
author | Ariel Manzur <ariel@okamstudio.com> | 2016-02-25 03:02:09 -0300 |
---|---|---|
committer | Ariel Manzur <ariel@okamstudio.com> | 2016-02-25 03:02:09 -0300 |
commit | ea751724a21e3513ff2291aa24491e9d91c8c0f0 (patch) | |
tree | efb3ad7ce7993e42022535d9ea315af094fff668 /tools | |
parent | c91b1daad82a5c1097eac1510d30897399ca9f61 (diff) |
adds -pm and -project_manager command line options to start project manager
fixes bug where the user has an engine.cfg on the executable directory so it runs the game instead of opening the project manager
Diffstat (limited to 'tools')
-rw-r--r-- | tools/editor/editor_node.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/editor/editor_node.cpp b/tools/editor/editor_node.cpp index b2623a590b..ea887fe18b 100644 --- a/tools/editor/editor_node.cpp +++ b/tools/editor/editor_node.cpp @@ -2671,8 +2671,9 @@ void EditorNode::_menu_option_confirm(int p_option,bool p_confirmed) { String exec = OS::get_singleton()->get_executable_path(); List<String> args; - args.push_back ( "-path" ); - args.push_back (exec.get_base_dir() ); + //args.push_back ( "-path" ); + //args.push_back (exec.get_base_dir() ); + args.push_back("-pm"); OS::ProcessID pid=0; Error err = OS::get_singleton()->execute(exec,args,false,&pid); |