This repository has been archived on 2025-03-23. You can view files and clone it, but cannot push or open issues or pull requests.
xerobrowser/WebBrowser/SettingsHandler.cs

25 lines
No EOL
768 B
C#

using System;
using System.IO;
using XeroBrowser.Properties;
namespace XeroBrowser
{
public class FileChecker
{
public static void FolderCheck()
{
if (!Directory.Exists(Environment.GetEnvironmentVariable("appdata")+"/Xero Browser"))
{
Directory.CreateDirectory(Environment.GetEnvironmentVariable("appdata")+"/Xero Browser");
}
}
public static void FileCheck()
{
if (!File.Exists(Environment.GetEnvironmentVariable("appdata")+"/Xero Browser/prefrences.conf"))
{
File.WriteAllBytes(Environment.GetEnvironmentVariable("appdata")+"/Xero Browser/prefrences.conf", Resource1.prefrences_conf);
}
}
}
}