1
0
Fork 0
mirror of https://github.com/hawkeye-stan/msfs-popout-panel-manager.git synced 2024-11-25 15:20:10 +00:00
msfs-popout-panel-manager/Shared/FileIO.cs

53 lines
2.4 KiB
C#
Raw Normal View History

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");
2022-08-02 15:51:28 +00:00
#elif RELEASETOUCHPANEL
return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "MSFS Pop Out Panel Manager Touch Panel");
2022-07-23 19:23:32 +00:00
#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");
2022-08-02 15:51:28 +00:00
#elif RELEASETOUCHPANEL
return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), @"MSFS Pop Out Panel Manager Touch Panel\LogFiles\error.log");
2022-07-23 19:23:32 +00:00
#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");
2022-08-02 15:51:28 +00:00
#elif RELEASETOUCHPANEL
return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), @"MSFS Pop Out Panel Manager Touch Panel\LogFiles\debug.log");
2022-07-23 19:23:32 +00:00
#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");
2022-08-02 15:51:28 +00:00
#elif RELEASETOUCHPANEL
return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), @"MSFS Pop Out Panel Manager Touch Panel\LogFiles\info.log");
2022-07-23 19:23:32 +00:00
#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
}
}
}