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

Function cliIsAssetArgument

Source/Basic/Application.cpp:178–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178bool cliIsAssetArgument(int argc, char* argv[], int& index) {
179 if (!argv[index]) return false;
180 std::string_view arg(argv[index]);
181 if (arg == "--asset") {
182 if (index + 1 < argc) index++;
183 return true;
184 }
185 return arg.rfind("--asset=", 0) == 0;
186}
187
188void cliPushFileError(lua_State* L, const std::string& message) {
189 lua_pushnil(L);

Callers 1

cliRegisterLuaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected