mirror of
https://github.com/ShiftOS-Rewind/ShiftOS.git
synced 2025-01-22 03:11:47 -05:00
yay things again
This commit is contained in:
parent
9bc7292d3b
commit
df647e5024
3 changed files with 24 additions and 4 deletions
20
ShiftOS.Engine/SaveSystem/SaveSystem.cs
Normal file
20
ShiftOS.Engine/SaveSystem/SaveSystem.cs
Normal file
|
@ -0,0 +1,20 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.IO;
|
||||
|
||||
namespace ShiftOS.Engine.SaveSystem
|
||||
{
|
||||
public static class SaveSystem
|
||||
{
|
||||
public static string dataDir
|
||||
{
|
||||
get
|
||||
{
|
||||
return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "ShiftOS-Rewind");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -16,7 +16,7 @@ namespace ShiftOS.Main.ShiftOS.Apps
|
|||
public bool RunningCommand = false;
|
||||
public bool WaitingResponse = false;
|
||||
public string InputReturnText = "";
|
||||
public List<string> c = TerminalBackend.commandBuffer;
|
||||
public Stack<string> c = TerminalBackend.commandBuffer;
|
||||
|
||||
// The below variables makes the terminal... a terminal!
|
||||
string OldText = "";
|
||||
|
@ -133,7 +133,7 @@ namespace ShiftOS.Main.ShiftOS.Apps
|
|||
else if (e.KeyCode == Keys.Up)
|
||||
{
|
||||
if (c.Count == 0) return;
|
||||
termmain.AppendText(c.Last());
|
||||
termmain.AppendText(c.Pop());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ namespace ShiftOS.Main.Terminal
|
|||
|
||||
public static List<ShiftOS.Apps.Terminal> trm = new List<ShiftOS.Apps.Terminal>();
|
||||
public static int trmTopID = 0;
|
||||
public static List<string> commandBuffer = new List<string>();
|
||||
public static Stack<string> commandBuffer = new Stack<string>();
|
||||
/// <summary>
|
||||
/// Runs a terminal command.
|
||||
/// </summary>
|
||||
|
@ -41,7 +41,7 @@ namespace ShiftOS.Main.Terminal
|
|||
Array.Find(trm.ToArray(), w => w.TerminalID == TermID).termmain.AppendText("\n");
|
||||
instance.Run(theParams);
|
||||
complete = true;
|
||||
commandBuffer.Add(command);
|
||||
commandBuffer.Push(command);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue