Checkpoint 4: harden native paths, authoring workflows and Player lifecycle

This commit is contained in:
Emil
2026-09-18 05:14:50 +03:00
parent 5ac4db438d
commit 45bc352d46
88 changed files with 12606 additions and 504 deletions
+5 -5
View File
@@ -43,11 +43,11 @@ void near(float a, float b, const char* message) {
int main() {
const auto root = std::filesystem::temp_directory_path() / ("faset-gizmo-ui-" + new_id());
try {
editor::Session session({root, FASET_TEST_ENGINE, root});
editor::Session session({root, path_from_utf8(FASET_TEST_ENGINE), root});
render::Renderer renderer({1280, 900, "Parented gizmo acceptance", true, true});
editor::EditorUI ui(session, renderer,
std::filesystem::path(FASET_TEST_ENGINE) / "assets/fonts/NotoSans.ttf",
std::filesystem::path(FASET_TEST_ENGINE) / "assets/ui/dark.json");
path_from_utf8(FASET_TEST_ENGINE) / "assets/fonts/NotoSans.ttf",
path_from_utf8(FASET_TEST_ENGINE) / "assets/ui/dark.json");
ui.frame({});
auto query = [&] { return session.authoring().query(ui.current_document()); };
auto parent =
@@ -158,10 +158,10 @@ int main() {
check(renderer.stats().validation_errors == 0, "Vulkan validation");
std::cout << "Parented world Move/local Rotate/local Scale, multi-frame preview, Undo, "
"Escape and composed local rotation passed. "
<< root << '\n';
<< path_to_utf8(root) << '\n';
return 0;
} catch (const std::exception& error) {
std::cerr << error.what() << "\nRetained: " << root << '\n';
std::cerr << error.what() << "\nRetained: " << path_to_utf8(root) << '\n';
return 1;
}
}