SC2API
An API for AI for StarCraft II
sc2_manage_process.h
1 #pragma once
2 
3 #include <cstdint>
4 #include <vector>
5 #include <string>
6 
7 namespace sc2 {
8 
9 bool DoesFileExist(const std::string& path);
10 bool HasExtension(const std::string& path, const std::string& extention);
11 uint64_t StartProcess(const std::string& process_path, const std::vector<std::string>& command_line);
12 bool IsProcessRunning(uint64_t process_id);
13 bool TerminateProcess(uint64_t process_id);
14 bool IsInDebugger();
15 void SleepFor(unsigned int ms);
16 bool PollKeyPress();
17 std::string GetUserDirectory();
18 std::string GetLibraryMapsDirectory();
19 std::string GetGameMapsDirectory(const std::string& process_path);
20 
21 bool FindLatestExe(std::string& path);
22 bool FindBaseExe(std::string& path, uint32_t base_build);
23 
24 }
Definition: sc2_action.h:9