Wrapping up bedrock implementation

This commit is contained in:
Ryan Ward
2026-05-13 10:04:59 -05:00
parent ed53aa99eb
commit cee61e2af0
1144 changed files with 2954 additions and 2660 deletions
+4 -3
View File
@@ -1,11 +1,11 @@
use crate::{LogFileWriter, SimpleLogger};
use galaxyui::r#async::executor::Background;
use galaxyui::{Entity, SingletonEntity};
use std::collections::{HashMap, HashSet};
use std::io::ErrorKind;
use std::path::{Path, PathBuf};
use std::sync::{Arc, Weak};
use thiserror::Error;
use galaxyui::r#async::executor::Background;
use galaxyui::{Entity, SingletonEntity};
#[derive(Error, Debug)]
pub enum LogManagerError {
@@ -36,7 +36,8 @@ pub fn resolve_log_path(namespace: &str, relative_path: impl AsRef<Path>) -> Pat
/// Returns the base log directory for a given namespace name.
fn log_directory_path(namespace: &str) -> PathBuf {
let base_dir = galaxy_core::paths::secure_state_dir().unwrap_or_else(galaxy_core::paths::state_dir);
let base_dir =
galaxy_core::paths::secure_state_dir().unwrap_or_else(galaxy_core::paths::state_dir);
if cfg!(windows) {
base_dir
.join(galaxy_core::paths::WARP_LOGS_DIR)