|
Polyphase Game Engine
|
#include "SystemUtils.h"#include "System.h"#include "Log.h"#include "EmbeddedFile.h"#include <cstdio>#include <cstdlib>#include <cstring>Functions | |
| void | ExecCommon (const char *cmd, std::string *output) |
| bool | SYS_ExecFull (const char *cmd, std::string *outStdout, std::string *outStderr, int *outExitCode) |
| Execute a command with full output capture. | |
| void | SYS_RegisterEmbeddedRawAssets (EmbeddedFile *table, uint32_t count) |
| const char * | SYS_LookupEmbeddedRawAsset (const char *path, uint32_t &outSize) |
| void ExecCommon | ( | const char * | cmd, |
| std::string * | output | ||
| ) |
| bool SYS_ExecFull | ( | const char * | cmd, |
| std::string * | outStdout, | ||
| std::string * | outStderr, | ||
| int * | outExitCode | ||
| ) |
Execute a command with full output capture.
Unlike SYS_Exec which only captures the first 1024 bytes, this function captures complete stdout/stderr output.
| cmd | Command to execute |
| outStdout | Pointer to receive stdout (can be nullptr) |
| outStderr | Pointer to receive stderr (can be nullptr) |
| outExitCode | Pointer to receive exit code (can be nullptr) |
| const char * SYS_LookupEmbeddedRawAsset | ( | const char * | path, |
| uint32_t & | outSize | ||
| ) |
| void SYS_RegisterEmbeddedRawAssets | ( | EmbeddedFile * | table, |
| uint32_t | count | ||
| ) |