Working on getting build working
Foundation / checks (deploy) (push) Successful in 2m55s
Foundation / checks (ecs) (push) Successful in 1m47s
Foundation / checks (client) (push) Successful in 12m47s
Foundation / checks (network) (push) Successful in 9m48s
Foundation / checks (tsan) (push) Successful in 7m53s
Foundation / checks (checks) (push) Successful in 31m28s
Foundation / checks (postgres) (push) Successful in 38m52s
Foundation / server-image (push) Failing after 8s
Foundation / postgres-tools (push) Successful in 10s
Foundation / image (push) Successful in 2m18s

This commit is contained in:
dingo
2026-10-04 17:04:10 -04:00
parent 3081b3df30
commit f3804460fc
2 changed files with 21 additions and 7 deletions
+19 -5
View File
@@ -1,6 +1,7 @@
// M9.8a toolkit qualification only: no simulation, network, or authority state.
#include <SDL3/SDL.h>
#include <SDL3/SDL_main.h>
#include <charconv>
#include <cstdio>
#include <imgui.h>
#include <imgui_impl_sdl3.h>
@@ -8,6 +9,7 @@
#include <memory>
#include <stdexcept>
#include <string_view>
#include <system_error>
namespace {
void require(bool ok, const char* message) {
@@ -108,11 +110,23 @@ void run(const char* driver) {
} // namespace
int main(int argc, char** argv) try {
const char* driver = nullptr;
if (argc == 3 && std::string_view{argv[1]} == "--renderer")
driver = argv[2];
else if (argc != 1)
return 2;
for (int cycle = 0; cycle < 3; ++cycle)
int cycles = 3;
for (int index = 1; index < argc;) {
const std::string_view option{argv[index++]};
if (option == "--renderer" && index < argc) {
driver = argv[index++];
} else if (option == "--cycles" && index < argc) {
const std::string_view value{argv[index++]};
const auto [end, error] =
std::from_chars(value.data(), value.data() + value.size(), cycles);
if (error != std::errc{} || end != value.data() + value.size() || cycles < 1 ||
cycles > 16)
return 2;
} else {
return 2;
}
}
for (int cycle = 0; cycle < cycles; ++cycle)
run(driver);
return 0;
} catch (const std::exception& error) {