From 863a3de04f5b5aade2dfccdbd273b5217cfaf452 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Sat, 14 May 2022 15:08:49 -0600 Subject: [PATCH] testqbsp: write out .bsp.json files for testmaps --- qbsp/test_qbsp.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qbsp/test_qbsp.cc b/qbsp/test_qbsp.cc index 5e4b50db..2a79d949 100644 --- a/qbsp/test_qbsp.cc +++ b/qbsp/test_qbsp.cc @@ -47,6 +47,8 @@ static mapentity_t LoadMap(const char *map) return worldspawn; } +#include + static mbsp_t LoadTestmap(const std::filesystem::path &name, std::vector extra_args = {}) { auto map_path = std::filesystem::path(testmaps_dir) / name; @@ -91,6 +93,9 @@ static mbsp_t LoadTestmap(const std::filesystem::path &name, std::vector(bspdata.bsp), fs::path(options.bsp_path).replace_extension(".bsp.json")); + return std::get(bspdata.bsp); }