From c81573594f509177214bbc9b64427c8aabdc30a6 Mon Sep 17 00:00:00 2001 From: AShifter Date: Sat, 25 Nov 2017 08:59:48 -0700 Subject: Add SaveSystem, FullScreen Terminal and stuff Git had a horrible seizure and removed our repo but Alex-TIMEHACK helped us get it back. --- ShiftOS.Engine/SaveSystem.cs | 75 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) (limited to 'ShiftOS.Engine/SaveSystem.cs') diff --git a/ShiftOS.Engine/SaveSystem.cs b/ShiftOS.Engine/SaveSystem.cs index 59ddf4b..51924d0 100644 --- a/ShiftOS.Engine/SaveSystem.cs +++ b/ShiftOS.Engine/SaveSystem.cs @@ -16,6 +16,13 @@ namespace ShiftOS.Engine return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "ShiftOS-Rewind"); } } + public static string dataDir + { + get + { + return gameDir + "\\Data"; + } + } public static string fontDir { get @@ -23,5 +30,73 @@ namespace ShiftOS.Engine return gameDir + "\\Fonts"; } } + public static string baseGameDir + { + get + { + return gameDir + "\\GameData"; + } + } + public static string homeDir + { + get + { + return baseGameDir + "\\Home"; + } + } + public static string desktopDir + { + get + { + return homeDir + "\\Desktop"; + } + } + public static string docDir + { + get + { + return homeDir + "\\Documents"; + } + } + public static string downloadsDir + { + get + { + return homeDir + "\\Downloads"; + } + } + public static string musicDir + { + get + { + return homeDir + "\\Music"; + } + } + public static string picDir + { + get { return homeDir + "\\Pictures"; } + } + public static class User + { + public static int codePoints + { + get + { + return 0; + } + set + { + + } + } + public static void AddToCodePoints(int amountToAdd) + { + codePoints += amountToAdd; + using (var fs = File.OpenWrite(dataDir + "\\userCodePoints.whoa")) + { + Whoa.Whoa.SerialiseObject(fs, codePoints); + } + } + } } } -- cgit v1.2.3