mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
WTFFFFF!
This commit is contained in:
parent
6c289f4482
commit
2903d5d581
11 changed files with 78 additions and 39 deletions
|
@ -36,6 +36,11 @@ namespace NzbDrone.Common
|
|||
}
|
||||
}
|
||||
|
||||
public static bool IsMono
|
||||
{
|
||||
get { return Type.GetType("Mono.Runtime") != null; }
|
||||
}
|
||||
|
||||
public static bool IsDebug
|
||||
{
|
||||
get
|
||||
|
@ -60,6 +65,12 @@ namespace NzbDrone.Common
|
|||
{
|
||||
get
|
||||
{
|
||||
|
||||
if(IsMono)
|
||||
{
|
||||
return AppDomain.CurrentDomain.BaseDirectory;
|
||||
}
|
||||
|
||||
string applicationPath;
|
||||
|
||||
applicationPath = CrawlToRoot(StartUpPath);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue