diff options
Diffstat (limited to 'ShiftOS_TheReturn')
| -rw-r--r-- | ShiftOS_TheReturn/AppLauncherDaemon.cs | 20 | ||||
| -rw-r--r-- | ShiftOS_TheReturn/Paths.cs | 1 |
2 files changed, 21 insertions, 0 deletions
diff --git a/ShiftOS_TheReturn/AppLauncherDaemon.cs b/ShiftOS_TheReturn/AppLauncherDaemon.cs index 9a0754b..7ef34c1 100644 --- a/ShiftOS_TheReturn/AppLauncherDaemon.cs +++ b/ShiftOS_TheReturn/AppLauncherDaemon.cs @@ -30,6 +30,7 @@ using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using Newtonsoft.Json; +using ShiftOS.Objects.ShiftFS; namespace ShiftOS.Engine { @@ -84,6 +85,15 @@ namespace ShiftOS.Engine } } } + + foreach(var file in Utils.GetFiles(Paths.GetPath("applauncher"))) + { + if (file.EndsWith(".al")) + { + var item = JsonConvert.DeserializeObject<LuaLauncherItem>(Utils.ReadAllText(file)); + win.Add(item); + } + } return win; } @@ -95,4 +105,14 @@ namespace ShiftOS.Engine public Type LaunchType { get; internal set; } } + + public class LuaLauncherItem : LauncherItem + { + public LuaLauncherItem(string file) + { + LaunchPath = file; + } + + public string LaunchPath { get; private set; } + } } diff --git a/ShiftOS_TheReturn/Paths.cs b/ShiftOS_TheReturn/Paths.cs index e773d1d..aeca13d 100644 --- a/ShiftOS_TheReturn/Paths.cs +++ b/ShiftOS_TheReturn/Paths.cs @@ -56,6 +56,7 @@ namespace ShiftOS.Engine AddPath("local", "deutsch.local"); AddPath("local", "verbose.local"); AddPath("system", "data"); + AddPath("system", "applauncher"); AddPath("data", "save.json"); AddPath("data", "user.dat"); AddPath("data", "skin"); |
