mirror of
https://github.com/recroom2016/OpenRec.git
synced 2026-04-22 13:25:51 +00:00
should get farther now
This commit is contained in:
10
APIServer.cs
10
APIServer.cs
@@ -209,7 +209,15 @@ namespace server
|
||||
}
|
||||
if (Url == "settings/v2/")
|
||||
{
|
||||
s = Settings.GetPlayerSettings();
|
||||
s = File.ReadAllText("SaveData\\settings.txt");
|
||||
}
|
||||
if (Url == "avatar/v3/items")
|
||||
{
|
||||
s = File.ReadAllText("SaveData\\avataritems.txt");
|
||||
}
|
||||
if (Url == "equipment/v1/getUnlocked")
|
||||
{
|
||||
s = File.ReadAllText("SaveData\\equipment.txt");
|
||||
}
|
||||
Console.WriteLine("API Response: " + s);
|
||||
byte[] bytes = Encoding.UTF8.GetBytes(s);
|
||||
|
||||
8
Setup.cs
8
Setup.cs
@@ -20,6 +20,14 @@ namespace start
|
||||
{
|
||||
File.WriteAllText("SaveData\\avatar.txt", new WebClient().DownloadString("https://raw.githubusercontent.com/recroom2016/OpenRec/master/Download/avatar.txt"));
|
||||
}
|
||||
if (!(File.Exists("SaveData\\avataritems.txt")))
|
||||
{
|
||||
File.WriteAllText("SaveData\\avataritems.txt", new WebClient().DownloadString("https://raw.githubusercontent.com/recroom2016/OpenRec/master/Download/avataritems.txt"));
|
||||
}
|
||||
if (!(File.Exists("SaveData\\equipment.txt")))
|
||||
{
|
||||
File.WriteAllText("SaveData\\equipment.txt", new WebClient().DownloadString("https://raw.githubusercontent.com/recroom2016/OpenRec/master/Download/equipment.txt"));
|
||||
}
|
||||
if (!(File.Exists("SaveData\\Profile\\username.txt")))
|
||||
{
|
||||
File.WriteAllText("SaveData\\Profile\\username.txt", "DefaultUsername");
|
||||
|
||||
Reference in New Issue
Block a user