more folder methods for server directory
This commit is contained in:
parent
dfec7d0028
commit
54f1855ea9
@ -12,7 +12,6 @@ use ManiaControl\ManiaControl;
|
||||
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||
*/
|
||||
class Directory {
|
||||
|
||||
/**
|
||||
* Private Properties
|
||||
*/
|
||||
@ -27,15 +26,6 @@ class Directory {
|
||||
$this->maniaControl = $maniaControl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve the Game Data Folder Path
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getGameDataFolder() {
|
||||
return $this->maniaControl->client->gameDataDirectory();
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve the Maps Folder Path
|
||||
*
|
||||
@ -53,4 +43,31 @@ class Directory {
|
||||
public function getSkinsFolder() {
|
||||
return $this->maniaControl->client->getSkinsDirectory();
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve the Logs Folder Path
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getLogsFolder() {
|
||||
return $this->getGameDataFolder() . '..' . DIRECTORY_SEPARATOR . 'Logs' . DIRECTORY_SEPARATOR;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve the Game Data Folder Path
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getGameDataFolder() {
|
||||
return $this->maniaControl->client->gameDataDirectory();
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve the Cache Folder Path
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCacheFolder() {
|
||||
return $this->getGameDataFolder() . '..' . DIRECTORY_SEPARATOR . 'CommonData' . DIRECTORY_SEPARATOR . 'Cache' . DIRECTORY_SEPARATOR;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user