Rebrand to Galaxy, major improvements to Bedrock support, still needs some TLC though

This commit is contained in:
Ryan Ward
2026-05-07 11:29:34 -05:00
parent f4e2475c60
commit a41cbd8cc7
2433 changed files with 14208 additions and 9409 deletions
+3 -3
View File
@@ -7,7 +7,7 @@
//! automatic heap profile generation every 500MB of memory allocated.
//!
//! If run from a release bundle, profiles will be written to
//! [`warp_core::paths::state_dir()`]. Otherwise, profiles will be written
//! [`galaxy_core::paths::state_dir()`]. Otherwise, profiles will be written
//! to the current working directory.
use cfg_if::cfg_if;
@@ -147,7 +147,7 @@ fn pprof_binary_path() -> anyhow::Result<std::path::PathBuf> {
if #[cfg(target_os = "macos")] {
use anyhow::Context as _;
let app_bundle_dir = std::path::PathBuf::from(warp_core::macos::get_bundle_path().context("Failed to get app bundle path")?);
let app_bundle_dir = std::path::PathBuf::from(galaxy_core::macos::get_bundle_path().context("Failed to get app bundle path")?);
Ok(app_bundle_dir.join("Contents/Helpers/pprof"))
}
else {
@@ -195,7 +195,7 @@ fn write_pprof_report(report: pprof::Report) -> anyhow::Result<()> {
fn profile_output_dir() -> std::path::PathBuf {
cfg_if::cfg_if! {
if #[cfg(feature = "release_bundle")] {
warp_core::paths::secure_state_dir().unwrap_or(warp_core::paths::state_dir())
galaxy_core::paths::secure_state_dir().unwrap_or(galaxy_core::paths::state_dir())
} else {
std::env::current_dir().ok().unwrap_or_else(|| {
dirs::home_dir().expect("Should not fail to compute both the current directory and the user's home directory")