Files
SpineParticlesWeb/connector/native/platform.hpp
T
2026-09-05 23:35:45 +08:00

24 lines
588 B
C++

#pragma once
#include <filesystem>
#include <string>
#include <vector>
namespace connector {
struct ProcessResult {
int exit_code = -1;
bool timed_out = false;
std::string output;
};
std::string platform_name();
std::string find_spine_executable();
bool valid_spine_executable(const std::string& path);
ProcessResult run_process(const std::string& executable,
const std::vector<std::string>& arguments,
const std::filesystem::path& working_directory,
int timeout_seconds);
} // namespace connector