add the thing
This commit is contained in:
commit
693666f285
45 changed files with 2601 additions and 0 deletions
28
WindowsFormsApplication2/FileChecker.cs
Normal file
28
WindowsFormsApplication2/FileChecker.cs
Normal file
|
@ -0,0 +1,28 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using WindowsFormsApplication2.Properties;
|
||||
|
||||
namespace WindowsFormsApplication2
|
||||
{
|
||||
class FileChecker
|
||||
{
|
||||
public static void FolderCheck()
|
||||
{
|
||||
if (!Directory.Exists(Environment.GetEnvironmentVariable("appdata")+"/JellyfinRPC"))
|
||||
{
|
||||
Directory.CreateDirectory(Environment.GetEnvironmentVariable("appdata")+"/JellyfinRPC");
|
||||
}
|
||||
}
|
||||
|
||||
public static void FileCheck()
|
||||
{
|
||||
if (!File.Exists(Environment.GetEnvironmentVariable("appdata")+"/JellyfinRPC/Config.txt"))
|
||||
{
|
||||
File.WriteAllBytes(Environment.GetEnvironmentVariable("appdata") + "/JellyfinRPC/Config.txt", Resources.Config_txt_default);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue