mirror of
https://github.com/C9Glax/tranga.git
synced 2025-01-12 19:37:33 +01:00
weird env
This commit is contained in:
parent
70b1ae4812
commit
c91754614b
@ -30,11 +30,14 @@ public static class Tranga
|
|||||||
"-------------------------------------------\n"+
|
"-------------------------------------------\n"+
|
||||||
" Starting Tranga-API\n"+
|
" Starting Tranga-API\n"+
|
||||||
"-------------------------------------------");
|
"-------------------------------------------");
|
||||||
logger.WriteLine("Tranga", "Loading settings.");
|
|
||||||
|
|
||||||
TrangaSettings settings = File.Exists(settingsFilePath)
|
TrangaSettings settings;
|
||||||
? TrangaSettings.LoadSettings(settingsFilePath)
|
if (File.Exists(settingsFilePath))
|
||||||
: new TrangaSettings(downloadFolderPath, applicationFolderPath);
|
{
|
||||||
|
logger.WriteLine("Tranga", $"Loading settings {settingsFilePath}");
|
||||||
|
settings = TrangaSettings.LoadSettings(settingsFilePath);
|
||||||
|
}else
|
||||||
|
settings = new TrangaSettings(downloadFolderPath, applicationFolderPath);
|
||||||
|
|
||||||
Directory.CreateDirectory(settings.workingDirectory);
|
Directory.CreateDirectory(settings.workingDirectory);
|
||||||
Directory.CreateDirectory(settings.downloadLocation);
|
Directory.CreateDirectory(settings.downloadLocation);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user