aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Program.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-02-08 15:51:22 -0500
committerMichael <[email protected]>2017-02-08 15:51:22 -0500
commit51ad9434bb2118ad4d5dd796d047415c76e99ccc (patch)
treea0b770b4824e72b24968a0451378aa33ecdb7d85 /ShiftOS.WinForms/Program.cs
parenta4b49ab68b4383e84ee200f47ea21ed1b4b22ffa (diff)
downloadshiftos_thereturn-51ad9434bb2118ad4d5dd796d047415c76e99ccc.tar.gz
shiftos_thereturn-51ad9434bb2118ad4d5dd796d047415c76e99ccc.tar.bz2
shiftos_thereturn-51ad9434bb2118ad4d5dd796d047415c76e99ccc.zip
Shop work.
- Shop Editor implemented. - Shop List implemented. - Shops are now a way to earn Codepoints.
Diffstat (limited to 'ShiftOS.WinForms/Program.cs')
-rw-r--r--ShiftOS.WinForms/Program.cs28
1 files changed, 28 insertions, 0 deletions
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";
+
+ }
+ }
}
}