This commit is contained in:
Michael VanOverbeek 2017-04-17 19:13:58 +00:00
parent 32fc6ed13d
commit d4daa694e1

View file

@ -164,6 +164,8 @@ namespace ShiftOS.Server
public static void SaveGame(string guid, object contents)
{
var sav = contents as Save;
if (string.IsNullOrWhiteSpace(sav.Username))
return;
sav.Username = sav.Username.ToLower();
WriteEncFile("saves/" + sav.Username + ".save", JsonConvert.SerializeObject(sav, Formatting.Indented));