Get process betterGet shell somewhat working
This commit is contained in:
@ -1,12 +1,19 @@
|
||||
#pragma once
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include "TessesFramework/Streams/Stream.hpp"
|
||||
#include "TessesFramework/HiddenField.hpp"
|
||||
#include <signal.h>
|
||||
#if defined(_WIN32)
|
||||
#define SIGKILL 9
|
||||
#endif
|
||||
|
||||
namespace Tesses::Framework::Platform {
|
||||
class Process {
|
||||
private:
|
||||
HiddenField hidden;
|
||||
bool exited = false;
|
||||
int exitCode=0;
|
||||
public:
|
||||
std::string name;
|
||||
std::vector<std::string> args;
|
||||
@ -16,6 +23,8 @@ class Process {
|
||||
bool redirectStdIn=false;
|
||||
bool redirectStdOut=false;
|
||||
bool redirectStdErr=false;
|
||||
bool HasExited();
|
||||
|
||||
|
||||
void CloseStdInNow();
|
||||
//YOU ARE RESPONSABLE FOR FREEING THIS STREAM OBJECT
|
||||
|
||||
@ -35,6 +35,8 @@
|
||||
#include "Serialization/Json.hpp"
|
||||
#include "Serialization/SQLite.hpp"
|
||||
#include "Platform/Environment.hpp"
|
||||
#include "Platform/Process.hpp"
|
||||
#include "Text/StringConverter.hpp"
|
||||
#include "SDL2/FontCache.hpp"
|
||||
#include "SDL2/Stream.hpp"
|
||||
#include "SDL2/GUI.hpp"
|
||||
#include "SDL2/GUI.hpp"
|
||||
|
||||
Reference in New Issue
Block a user