mirror of
https://github.com/recroom2016/OpenRec.git
synced 2026-04-22 13:25:51 +00:00
okay
This commit is contained in:
@@ -207,9 +207,9 @@ namespace server
|
||||
{
|
||||
File.WriteAllText("SaveData\\avatar.txt", text);
|
||||
}
|
||||
if (Url == "settings/v2")
|
||||
if (Url == "settings/v2/")
|
||||
{
|
||||
|
||||
s = Settings.GetPlayerSettings();
|
||||
}
|
||||
Console.WriteLine("API Response: " + s);
|
||||
byte[] bytes = Encoding.UTF8.GetBytes(s);
|
||||
|
||||
@@ -175,6 +175,6 @@ namespace api
|
||||
private static List<Setting> playerSettings;
|
||||
|
||||
// Token: 0x040000F1 RID: 241
|
||||
public static string SettingsPath = + "PlayerSettings.dat";
|
||||
public static string SettingsPath = "SaveData\\settings.txt";
|
||||
}
|
||||
}
|
||||
|
||||
4
Setup.cs
4
Setup.cs
@@ -24,6 +24,10 @@ namespace start
|
||||
{
|
||||
File.WriteAllText("SaveData\\Profile\\username.txt", "DefaultUsername");
|
||||
}
|
||||
if (!(File.Exists("SaveData\\settings.txt")))
|
||||
{
|
||||
File.WriteAllText("SaveData\\settings.txt", Newtonsoft.Json.JsonConvert.SerializeObject(api.Settings.CreateDefaultSettings()));
|
||||
}
|
||||
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