兼容Linux

This commit is contained in:
xx
2024-06-08 18:59:49 +08:00
parent e0f70152ff
commit f44caeedb7
4 changed files with 90 additions and 7 deletions

View File

@@ -8,7 +8,6 @@ namespace ylib
{
namespace process
{
#ifdef _WIN32
// 取进程路径
std::string getpath(uint32 process_id);
/*进程信息*/
@@ -33,6 +32,7 @@ namespace ylib
std::list<ylib::process::proc_info> list();
// 是否存在
size_t exist(const std::string& filepath);
#ifdef _WIN32
// 检测多开
bool already_running(const std::string& name);
// 设置为启动