mirror of
https://github.com/recroom2016/OpenRec.git
synced 2026-04-22 13:25:51 +00:00
Version 0.2
This commit is contained in:
5
Setup.cs
5
Setup.cs
@@ -11,6 +11,7 @@ namespace start
|
||||
public static void setup()
|
||||
{
|
||||
Console.WriteLine("Setting up...");
|
||||
Directory.CreateDirectory("SaveData\\App\\");
|
||||
Directory.CreateDirectory("SaveData\\Profile\\");
|
||||
if (!(File.Exists("SaveData\\avatar.txt")))
|
||||
{
|
||||
@@ -40,6 +41,10 @@ namespace start
|
||||
{
|
||||
File.WriteAllText("SaveData\\settings.txt", Newtonsoft.Json.JsonConvert.SerializeObject(api.Settings.CreateDefaultSettings()));
|
||||
}
|
||||
if (!(File.Exists("SaveData\\App\\sandbox.txt")))
|
||||
{
|
||||
File.WriteAllText("SaveData\\App\\sandbox.txt", "Disabled");
|
||||
}
|
||||
if (!(File.Exists("SaveData\\profileimage.png")))
|
||||
{
|
||||
File.WriteAllBytes("SaveData\\profileimage.png", new WebClient().DownloadData("https://github.com/OpenRecRoom/OpenRec/raw/main/profileimage.png"));
|
||||
|
||||
Reference in New Issue
Block a user