MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / isCliRequested

Function isCliRequested

Source/Basic/Application.cpp:89–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87#define DORA_CLI_SUPPORTED (BX_PLATFORM_WINDOWS || BX_PLATFORM_OSX || BX_PLATFORM_LINUX)
88
89bool isCliRequested(int argc, char* argv[]) {
90 for (int i = 1; i < argc; i++) {
91 if (!argv[i]) continue;
92 std::string_view arg(argv[i]);
93 if (arg == "cli") {
94 return true;
95 }
96 if (arg == "--asset") {
97 if (i + 1 < argc) i++;
98 continue;
99 }
100 if (arg.rfind("--asset=", 0) == 0) {
101 continue;
102 }
103 break;
104 }
105 return false;
106}
107
108#if DORA_CLI_SUPPORTED
109

Callers 2

mainFunction · 0.85
WinMainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected