triSeedMods — inject n fake catalog rows into the active MODS table.
| 422 | } |
| 423 | |
| 424 | /// triSessionPing <row> - return the currently visible MP browser row ping. |
| 425 | GameValue TriSessionPing(const GameState* state, GameValuePar arg) |
| 426 | { |
| 427 | int row = static_cast<int>(static_cast<GameScalarType>(arg)); |
| 428 | DisplayMultiplayer* mp = dynamic_cast<DisplayMultiplayer*>(GetActiveDisplayForSQF()); |
| 429 | if (mp == nullptr) |
| 430 | { |
| 431 | LOG_ERROR(Core, "[tri] triSessionPing: MP server browser is not the active display"); |
| 432 | return GameValue(static_cast<GameScalarType>(-1)); |
| 433 | } |
| 434 | return GameValue(static_cast<GameScalarType>(mp->GetVisibleSessionPingForTest(row))); |
| 435 | } |
| 436 | |
| 437 | /// triSeedMods <n> — inject n fake catalog rows into the active MODS table. |
| 438 | GameValue TriSeedMods(const GameState* state, GameValuePar arg) |
| 439 | { |
nothing calls this directly
no test coverage detected