AEExternalTool.cpp 756 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. // Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved
  2. // Please see LICENSE.md in repository root for license information
  3. // https://github.com/AtomicGameEngine/AtomicGameEngine
  4. #include "AtomicEditor.h"
  5. #include <Atomic/IO/Log.h>
  6. #include "Subprocess/AESubprocessSystem.h"
  7. #include "AEExternalTool.h"
  8. namespace AtomicEditor
  9. {
  10. ExternalTool::ExternalTool(Context* context) :
  11. Object(context)
  12. {
  13. }
  14. ExternalTool::~ExternalTool()
  15. {
  16. }
  17. bool ExternalTool::LaunchInternal(const String& applicationPath, const String& args)
  18. {
  19. SubprocessSystem* system = GetSubsystem<SubprocessSystem>();
  20. Vector<String> vargs = args.Split(' ');
  21. subprocess_ = system->Launch(applicationPath, vargs);
  22. return subprocess_.NotNull();
  23. }
  24. }