2022-07-23 19:23:32 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.IO;
|
2022-01-27 13:40:04 +00:00
|
|
|
|
|
|
|
|
|
namespace MSFSPopoutPanelManager.Shared
|
|
|
|
|
{
|
|
|
|
|
public class FileIo
|
|
|
|
|
{
|
|
|
|
|
public static string GetUserDataFilePath()
|
|
|
|
|
{
|
2022-07-23 19:23:32 +00:00
|
|
|
|
#if DEBUG || DEBUGTOUCHPANEL
|
|
|
|
|
return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "MSFS Pop Out Panel Manager Debug");
|
|
|
|
|
#else
|
|
|
|
|
return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "MSFS Pop Out Panel Manager");
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static string GetErrorLogFilePath()
|
|
|
|
|
{
|
|
|
|
|
#if DEBUG || DEBUGTOUCHPANEL
|
|
|
|
|
return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), @"MSFS Pop Out Panel Manager Debug\LogFiles\error.log");
|
|
|
|
|
#else
|
|
|
|
|
return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), @"MSFS Pop Out Panel Manager\LogFiles\error.log");
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static string GetDebugLogFilePath()
|
|
|
|
|
{
|
|
|
|
|
#if DEBUG || DEBUGTOUCHPANEL
|
|
|
|
|
return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), @"MSFS Pop Out Panel Manager Debug\LogFiles\debug.log");
|
|
|
|
|
#else
|
|
|
|
|
return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), @"MSFS Pop Out Panel Manager\LogFiles\debug.log");
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static string GetInfoLogFilePath()
|
|
|
|
|
{
|
|
|
|
|
#if DEBUG || DEBUGTOUCHPANEL
|
|
|
|
|
return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), @"MSFS Pop Out Panel Manager Debug\LogFiles\info.log");
|
|
|
|
|
#else
|
|
|
|
|
return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), @"MSFS Pop Out Panel Manager\LogFiles\info.log");
|
|
|
|
|
#endif
|
2022-01-27 13:40:04 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|