Find path to running app using [NSBundle bundlePath]
This commit is contained in:
parent
fb2caf3c58
commit
e566a8335f
4 changed files with 25 additions and 5 deletions
|
@ -57,6 +57,7 @@ pub trait Platform: Send + Sync {
|
|||
fn local_timezone(&self) -> UtcOffset;
|
||||
|
||||
fn path_for_resource(&self, name: Option<&str>, extension: Option<&str>) -> Result<PathBuf>;
|
||||
fn app_path(&self) -> Result<PathBuf>;
|
||||
fn app_version(&self) -> Result<AppVersion>;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue