Provide getter for store path in Runtime object
This commit is contained in:
parent
5942877c43
commit
a5dabe55a9
1 changed files with 4 additions and 0 deletions
|
@ -74,6 +74,10 @@ impl<'a> Runtime<'a> {
|
|||
self.config.is_debugging() || self.configuration.is_verbose()
|
||||
}
|
||||
|
||||
pub fn store_path(&self) -> String {
|
||||
self.config.store_path().unwrap_or(self.configuration.store_path())
|
||||
}
|
||||
|
||||
pub fn get_rtp(&self) -> String {
|
||||
if let Some(rtp) = self.config.get_rtp() {
|
||||
rtp
|
||||
|
|
Loading…
Reference in a new issue