mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 05:21:29 +00:00
* Swap execute output method * Create "Process" class and move random string to Strings * test * Tweaks
20 lines
263 B
C++
20 lines
263 B
C++
#ifndef EQEMU_PROCESS_H
|
|
#define EQEMU_PROCESS_H
|
|
|
|
#include "../strings.h"
|
|
|
|
#include <cstdio>
|
|
|
|
#if _WIN32
|
|
#define popen _popen
|
|
#define pclose _pclose
|
|
#endif
|
|
|
|
class Process {
|
|
public:
|
|
static std::string execute(const std::string &cmd);
|
|
};
|
|
|
|
|
|
#endif //EQEMU_PROCESS_H
|