Commit d6e61136 authored by Adam Leyshon's avatar Adam Leyshon
Browse files

Unbreak SimpleJson

parent a5d2ce1b
......@@ -13,7 +13,6 @@ using System.IO;
using System.Linq;
using RimWorld;
using Verse;
using SimpleJson = RestSharp.SimpleJson;
namespace Glitterworld_Prime.Tools
{
......@@ -178,7 +177,7 @@ namespace Glitterworld_Prime.Tools
var path = Path.Combine(GenFilePaths.SaveDataFolderPath,
$"{GlitterWorldApi.MarketUrl}_thing_data_{languageName}.json");
var jsonString = SimpleJson.SerializeObject(data);
var jsonString = RestSharp.SimpleJson.SerializeObject(data);
File.WriteAllText(path, jsonString);
Messages.Message($"{data.Count()} objects dumped to {path}", MessageTypeDefOf.TaskCompletion);
}
......
......@@ -19,7 +19,6 @@ using RimWorld;
using Steamworks;
using Verse;
using Verse.Steam;
using SimpleJson = RestSharp.SimpleJson;
using Version = System.Version;
namespace Glitterworld_Prime
......@@ -75,7 +74,7 @@ namespace Glitterworld_Prime
if (File.Exists(idPath))
{
var userData = SimpleJson.DeserializeObject<GlitterWorldIdResponse>(File.ReadAllText(idPath));
var userData = RestSharp.SimpleJson.DeserializeObject<GlitterWorldIdResponse>(File.ReadAllText(idPath));
_userId = userData.Hash;
#if DEBUG
LogWriter.WriteMessage($"File found and loaded, User ID is {_userId}");
......@@ -96,7 +95,7 @@ namespace Glitterworld_Prime
{
var idPath = Path.Combine(GenFilePaths.SaveDataFolderPath, "GWP-Config.json");
var json = SimpleJson.SerializeObject(userData);
var json = RestSharp.SimpleJson.SerializeObject(userData);
#if DEBUG
LogWriter.WriteMessage($"Saving User ID JSON: {json}");
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment