Build production-ready editor authoring workflows
CI / Format, lint, test, build (push) Waiting to run

This commit is contained in:
Rbanh committed 2026-07-11 12:41:04 -04:00
1 parent cc1fa6ea3b
commit 0553a85220
163 files changed
+34547 -1565

No files matched your search

+21
View File
@@ -1,6 +1,27 @@
//! In-process editor binary entry point.
fn main() {
let startup = match editor::launcher::parse_startup_arguments(std::env::args().skip(1)) {
Ok(startup) => startup,
Err(error) => {
eprintln!(
"Blacksite Editor: {error}\n\n{}",
editor::launcher::command_line_help()
);
std::process::exit(2);
}
};
if startup.help {
println!("{}", editor::launcher::command_line_help());
return;
}
if let Some(root) = startup.project {
if let Err(error) = editor::launcher::activate_project_root(&root) {
eprintln!("Blacksite Editor: {error}");
std::process::exit(2);
}
}
if std::env::var_os("WGPU_VALIDATION").is_none() {
// SAFETY: called before any threads or GPU init.
unsafe { std::env::set_var("WGPU_VALIDATION", "0") };
@@ -0,0 +1,9 @@
//! Dedicated pre-engine Blacksite project browser.
fn main() {
if std::env::var_os("WGPU_VALIDATION").is_none() {
// SAFETY: called before Bevy starts worker threads or initializes the renderer.
unsafe { std::env::set_var("WGPU_VALIDATION", "0") };
}
editor::launcher::run_project_launcher();
}