Reuse verified gameplay schema and build generations

This commit is contained in:
Emil
2026-09-24 01:41:26 +03:00
parent deb37c308b
commit 4a59ca1629
6 changed files with 258 additions and 26 deletions
+3
View File
@@ -8,6 +8,9 @@ using namespace faset;
int tool_main(int argc, char** argv) {
try {
if (argc >= 3 && std::string_view(argv[1]) == "--output") {
const auto count_file = fs::path("schema-export-count.txt");
const auto count = fs::exists(count_file) ? std::stoi(read_text(count_file)) : 0;
atomic_write(count_file, std::to_string(count + 1));
if (argc == 5 && std::string_view(argv[3]) == "--project") {
const auto snapshot = path_from_utf8(argv[4]);
const auto project = read_json(snapshot / "project.faset.json");