diff options
| author | carverh <[email protected]> | 2016-07-21 16:00:53 -0700 |
|---|---|---|
| committer | carverh <[email protected]> | 2016-07-21 16:00:53 -0700 |
| commit | 3730f2829e697312b0c912601e5d428829df7645 (patch) | |
| tree | 8ad8b6cf56cbea6623f7a2a69f16ff43e71fc7bf /source/WindowsFormsApplication1/Apps | |
| parent | 05373252f6d97753593dbaa5a274e438e9fac1f5 (diff) | |
| download | shiftos-c--3730f2829e697312b0c912601e5d428829df7645.tar.gz shiftos-c--3730f2829e697312b0c912601e5d428829df7645.tar.bz2 shiftos-c--3730f2829e697312b0c912601e5d428829df7645.zip | |
Fixed Up and Added Features
Diffstat (limited to 'source/WindowsFormsApplication1/Apps')
| -rw-r--r-- | source/WindowsFormsApplication1/Apps/Terminal.cs | 59 |
1 files changed, 41 insertions, 18 deletions
diff --git a/source/WindowsFormsApplication1/Apps/Terminal.cs b/source/WindowsFormsApplication1/Apps/Terminal.cs index 340cf23..6e85bd2 100644 --- a/source/WindowsFormsApplication1/Apps/Terminal.cs +++ b/source/WindowsFormsApplication1/Apps/Terminal.cs @@ -1,5 +1,5 @@ using Newtonsoft.Json; - +using ShiftOS.FinalMission; using System; using System.Collections.Generic; using System.ComponentModel; @@ -747,6 +747,9 @@ namespace ShiftOS case "timedistorter": cmd_histacom_timedistorter(args); break; + case "about": + cmd_about(args); + break; default: cmd_default(args); break; @@ -2038,34 +2041,42 @@ Password: z7fjsd3"); public void cmd_cd(String[] args) { - if (API.Upgrades["fileskimmer"]) + try { - if (args[1] == "..") + if (API.Upgrades["fileskimmer"]) { - if (GetPath(current_dir) != "/") + if (args[1] == "..") { - current_dir = GetParent(current_dir); - SetPrefix($"{API.Username}@{API.OSName} in {GetPath(current_dir)} $> "); + if (GetPath(current_dir) != "/") + { + current_dir = GetParent(current_dir); + SetPrefix($"{API.Username}@{API.OSName} in {GetPath(current_dir)} $> "); + } + else + { + WriteLine("cd: Can't go up past the root."); + } } else { - WriteLine("cd: Can't go up past the root."); - } - } - else - { - string newdir = current_dir + OSInfo.DirectorySeparator; - foreach (var dir in Directory.GetDirectories(current_dir)) - { - if (new DirectoryInfo(dir).Name.ToLower() == args[1]) - newdir = dir; + string newdir = current_dir + OSInfo.DirectorySeparator; + foreach (var dir in Directory.GetDirectories(current_dir)) + { + if (new DirectoryInfo(dir).Name.ToLower() == args[1]) + newdir = dir; + } + current_dir = newdir; + SetPrefix($"{API.Username}@{API.OSName} in {GetPath(current_dir)} $> "); } - current_dir = newdir; - SetPrefix($"{API.Username}@{API.OSName} in {GetPath(current_dir)} $> "); } } + catch (Exception e) + { + WriteLine("cd: " + e); + } } + public void cmd_upg(String[] args) { if (API.DeveloperMode) @@ -2890,6 +2901,9 @@ HIJACKER is a utility that allows you to hijack any system and install ShiftOS o API.DeveloperMode = false; WriteLine("Turned off developer mode. Use the passcode to turn it back on."); break; + case "end": + EndGameHandler.StartGoodEnding(); + break; default: WriteLine("Invalid argument: " + args[1] + ". Debug can only debug the following: 'shiftnet-story'."); break; @@ -2996,6 +3010,15 @@ HIJACKER is a utility that allows you to hijack any system and install ShiftOS o } } + /// <summary> + /// About Box, Created By Carver Harrison + /// </summary> + /// <param name="args">String[] args</param> + public void cmd_about(String[] args) + { + API.CreateInfoboxSession("About ShiftOS", "ShiftOS Version " + ProductVersion + "\n Copyright 2014-2016 ShiftOS Dev Team \n Type 'credits' in Terminal to Show Credits", infobox.InfoboxMode.Info); + } + // HISTACOM REFERENCES, DO NOT REMOVE, CRUCIAL FOR SECRET STORY ARC public void cmd_histacom_year(String[] args) { |
