| 176 | } |
| 177 | |
| 178 | bool 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 | |
| 188 | void cliPushFileError(lua_State* L, const std::string& message) { |
| 189 | lua_pushnil(L); |