Merge branch 'master' into jk/rework-desktop-crate
This commit is contained in:
125 files changed
+5577
-1255
No files matched your search
@@ -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!
|
||||
|
||||
Reference in new issue
Block a user