Merge branch 'master' into jk/rework-desktop-crate

This commit is contained in:
Jonathan Kelley committed 2024-01-05 12:22:59 -08:00
commit 47306bf89b
125 files changed
+5577 -1255

No files matched your search

+5
View File
@@ -144,6 +144,11 @@ fn module_loader(root_id: &str, headless: bool) -> String {
/// - [ ] Linux (deb)
/// - [ ] iOS
/// - [ ] Android
#[allow(unreachable_code)]
pub(crate) fn get_asset_root_or_default() -> PathBuf {
get_asset_root().unwrap_or_else(|| Path::new(".").to_path_buf())
}
#[allow(unreachable_code)]
fn get_asset_root() -> Option<PathBuf> {
// If running under cargo, there's no bundle!