diff options
| author | Dan Engelbrecht <[email protected]> | 2025-03-12 18:58:24 +0100 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2025-03-12 18:58:24 +0100 |
| commit | 908f99b749fbbf9754f9485d680914792034334c (patch) | |
| tree | 2d4e70fa49d3c95c509f230cb2dc5269358a3b59 /src/zencore/include | |
| parent | Remove spurious '4' in conditional code block (diff) | |
| download | zen-908f99b749fbbf9754f9485d680914792034334c.tar.xz zen-908f99b749fbbf9754f9485d680914792034334c.zip | |
fix quoted command lines arguments (#306)
Handling of quotes and quotes with leading backslash for command line parsing - UE-231677
Diffstat (limited to 'src/zencore/include')
| -rw-r--r-- | src/zencore/include/zencore/filesystem.h | 2 | ||||
| -rw-r--r-- | src/zencore/include/zencore/process.h | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/zencore/include/zencore/filesystem.h b/src/zencore/include/zencore/filesystem.h index e020668fc..9a2b15d1d 100644 --- a/src/zencore/include/zencore/filesystem.h +++ b/src/zencore/include/zencore/filesystem.h @@ -292,6 +292,8 @@ uint32_t MakeFileModeReadOnly(uint32_t FileMode, bool ReadOnly); bool SetFileReadOnly(const std::filesystem::path& Filename, bool ReadOnly); +std::filesystem::path StringToPath(const std::string_view& Path); + ////////////////////////////////////////////////////////////////////////// void filesystem_forcelink(); // internal diff --git a/src/zencore/include/zencore/process.h b/src/zencore/include/zencore/process.h index d1394cd9a..0c5931ba0 100644 --- a/src/zencore/include/zencore/process.h +++ b/src/zencore/include/zencore/process.h @@ -100,6 +100,9 @@ int GetProcessId(CreateProcResult ProcId); std::filesystem::path GetProcessExecutablePath(int Pid, std::error_code& OutEc); std::error_code FindProcess(const std::filesystem::path& ExecutableImage, ProcessHandle& OutHandle); +std::vector<std::string> ParseCommandLine(std::string_view CommandLine); +std::vector<char*> StripCommandlineQuotes(std::vector<std::string>& InOutArgs); + void process_forcelink(); // internal } // namespace zen |