From 15740faf9fe9fe4be08965098bbf2947e096aeeb Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 14 Aug 2019 22:50:43 +0800 Subject: +Unity Runtime code --- Runtime/Utilities/Argv.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Runtime/Utilities/Argv.h (limited to 'Runtime/Utilities/Argv.h') diff --git a/Runtime/Utilities/Argv.h b/Runtime/Utilities/Argv.h new file mode 100644 index 0000000..835b4bc --- /dev/null +++ b/Runtime/Utilities/Argv.h @@ -0,0 +1,30 @@ +#ifndef ARGV_H +#define ARGV_H + +void SetupArgv (int argc, const char** argv); + +const char **GetArgv(); +int GetArgc(); + +/// Returns true if the commandline contains a -name. +bool HasARGV (const std::string& name); + +bool IsBatchmode (); +bool IsHumanControllingUs (); + +void SetIsBatchmode (bool value); + +/// Returns a list of values for the argument +std::vector GetValuesForARGV (const std::string& name); + +std::vector GetAllArguments(); +std::string GetFirstValueForARGV (const std::string& name); + +void SetRelaunchApplicationArguments (const std::vector& args); +std::vector GetRelaunchApplicationArguments (); + +void PrintARGV (); + +void CheckBatchModeErrorString (const std::string& error); + +#endif -- cgit v1.1-26-g67d0