From 8fff93eb7da1b01d101e146ca7fe5d90ca01fcde Mon Sep 17 00:00:00 2001 From: FloppyDiskDrive Date: Thu, 23 Nov 2017 11:20:53 -0600 Subject: extremely rough savesystem --- ShiftOS.Engine/Properties/Resources.Designer.cs | 10 +++++++++ ShiftOS.Engine/Properties/Resources.resx | 3 +++ ShiftOS.Engine/Resources/UbuntuMono-R.ttf | Bin 0 -> 205748 bytes ShiftOS.Engine/SaveSystem.cs | 27 ++++++++++++++++++++++++ ShiftOS.Engine/ShiftOS.Engine.csproj | 2 ++ 5 files changed, 42 insertions(+) create mode 100644 ShiftOS.Engine/Resources/UbuntuMono-R.ttf create mode 100644 ShiftOS.Engine/SaveSystem.cs (limited to 'ShiftOS.Engine') diff --git a/ShiftOS.Engine/Properties/Resources.Designer.cs b/ShiftOS.Engine/Properties/Resources.Designer.cs index ced728d..5959c79 100644 --- a/ShiftOS.Engine/Properties/Resources.Designer.cs +++ b/ShiftOS.Engine/Properties/Resources.Designer.cs @@ -1797,6 +1797,16 @@ namespace ShiftOS.Engine.Properties { } } + /// + /// Looks up a localized resource of type System.Byte[]. + /// + internal static byte[] UbuntuMono_R { + get { + object obj = ResourceManager.GetObject("UbuntuMono_R", resourceCulture); + return ((byte[])(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// diff --git a/ShiftOS.Engine/Properties/Resources.resx b/ShiftOS.Engine/Properties/Resources.resx index 7d95cf4..bafd273 100644 --- a/ShiftOS.Engine/Properties/Resources.resx +++ b/ShiftOS.Engine/Properties/Resources.resx @@ -1114,4 +1114,7 @@ ..\Resources\3beepvirus.wav;System.IO.MemoryStream, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + ..\Resources\UbuntuMono-R.ttf;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + \ No newline at end of file diff --git a/ShiftOS.Engine/Resources/UbuntuMono-R.ttf b/ShiftOS.Engine/Resources/UbuntuMono-R.ttf new file mode 100644 index 0000000..fdd309d Binary files /dev/null and b/ShiftOS.Engine/Resources/UbuntuMono-R.ttf differ diff --git a/ShiftOS.Engine/SaveSystem.cs b/ShiftOS.Engine/SaveSystem.cs new file mode 100644 index 0000000..59ddf4b --- /dev/null +++ b/ShiftOS.Engine/SaveSystem.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ShiftOS.Engine +{ + public class SaveSystem + { + public static string gameDir + { + get + { + return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "ShiftOS-Rewind"); + } + } + public static string fontDir + { + get + { + return gameDir + "\\Fonts"; + } + } + } +} diff --git a/ShiftOS.Engine/ShiftOS.Engine.csproj b/ShiftOS.Engine/ShiftOS.Engine.csproj index db21b5a..faff407 100644 --- a/ShiftOS.Engine/ShiftOS.Engine.csproj +++ b/ShiftOS.Engine/ShiftOS.Engine.csproj @@ -63,6 +63,7 @@ True Resources.resx + UserControl @@ -626,6 +627,7 @@ + -- cgit v1.2.3