From 51ad9434bb2118ad4d5dd796d047415c76e99ccc Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 8 Feb 2017 15:51:22 -0500 Subject: Shop work. - Shop Editor implemented. - Shop List implemented. - Shops are now a way to earn Codepoints. --- ShiftOS.WinForms/Program.cs | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'ShiftOS.WinForms/Program.cs') diff --git a/ShiftOS.WinForms/Program.cs b/ShiftOS.WinForms/Program.cs index 1042f23..33d7b2f 100644 --- a/ShiftOS.WinForms/Program.cs +++ b/ShiftOS.WinForms/Program.cs @@ -104,6 +104,8 @@ namespace ShiftOS.WinForms public class WinformsFSFrontend : IFileSkimmer { + + public void OpenDirectory(string path) { var fs = new Applications.FileSkimmer(); @@ -185,5 +187,31 @@ namespace ShiftOS.WinForms { return Applications.FileSkimmer.GetImage(FileSkimmerBackend.GetFileType(path)); } + + public string GetFileExtension(FileType fileType) + { + switch (fileType) + { + case FileType.Executable: + return ".saa"; + case FileType.Filesystem: + return ".mfs"; + case FileType.Image: + return ".pic"; + case FileType.JSON: + return ".json"; + case FileType.Lua: + return ".lua"; + case FileType.Python: + return ".py"; + case FileType.Skin: + return ".skn"; + case FileType.TextFile: + return ".txt"; + default: + return ".bin"; + + } + } } } -- cgit v1.2.3