From e5396bf629692f902529942113c02faeaeebd3ea Mon Sep 17 00:00:00 2001 From: iplux <49649756+ipluxteamx@users.noreply.github.com> Date: Fri, 10 Feb 2023 16:33:06 +0100 Subject: [PATCH] 0.2.1, a new beginning. Release coming later today. --- Application/resources/icons/appIcon.png | Bin 16392 -> 2569 bytes Application/resources/index.html | 4 +- Application/resources/src/ProductKeys.atf | 150 ------------------ Application/resources/src/key.js | 2 +- Aqua/Aqua.csproj | 4 +- Aqua/Commands/Manager.cs | 3 +- Aqua/Graphics/Base/Window.cs | 5 +- Aqua/Kernel.cs | 22 +-- .../Miscellaneous/Activation/KeyDecryption.cs | 29 +++- .../Miscellaneous/Compatibility/TextEditor.cs | 1 - Aqua/Miscellaneous/CompileTime.cs | 4 +- Aqua/Miscellaneous/TEDEditor.cs | 47 +++++- Aqua/Sounds/{Shutdown-alt.wav => Logoff.wav} | Bin Aqua/Sounds/{Startup.wav => Logon.wav} | Bin Aqua/Sounds/Sounds.cs | 13 +- Aqua/Terminal/Accounts/Accounts.cs | 5 + Aqua/Terminal/Accounts/LoginSystem.cs | 21 +-- desktop.ini | 4 + 18 files changed, 115 insertions(+), 199 deletions(-) delete mode 100644 Application/resources/src/ProductKeys.atf rename Aqua/Sounds/{Shutdown-alt.wav => Logoff.wav} (100%) rename Aqua/Sounds/{Startup.wav => Logon.wav} (100%) create mode 100644 desktop.ini diff --git a/Application/resources/icons/appIcon.png b/Application/resources/icons/appIcon.png index d708bc3cc0f64c18aac9ff49d28476c02c9dca0c..2e75c215a142bc88666399e1a05a7017bf060e17 100644 GIT binary patch literal 2569 zcmX|Dc{r47AD)>~W6S&6M);U_bWj{+SH#SCEt8$H6?H@*WG9og7cY@emdd_nmr~i2 zV>x7LLzYU^*!SZY+c(a4UEd$S`+n}<^Ly^+x}N2_ele!TdfXhs92g9So2Cz&vv^`Z z@P}Av0f-E;h}~1)#s`DpK6?+)Wvxy1q4KLZGvKDXu0$TBfB8 zQ;qAnfnNAHom6)BlljZKQs&<~zl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3-r=9rUg=nVZ#ZR;KD z&mAR>Td*nG{2seHDLR=tyeQ@)T0U`c8OK(0wiP{h*4W+IF65q-|mRXB;i8u1IgD(}eLgKJ=~iduW| zxQIlhz2Q_4&uHr_keaOyi;{m2=zkb(P@l(6fA1{zbUD5!K6r(5}SpT~p9F|^iU zI5nNPbv>>0wXIOCwFw{g-E2V&)vt9DqrZvsm&aqy-Mqb=C+%=Na)(ymmAO<&ND`7(2++=^I+gNVmFN@!_DG~K$?}=E8*-o zzt&L~L#DTGe!}FjDx0{b#woH1hb??_h2vX$w$VIx3M_M1Y#T}Z$zI$*htR}fs~=98 z{Vgi`G{~yMm2Z@-S=F}`j)U response.text()) .then(data => { keys = data.split("\n"); diff --git a/Aqua/Aqua.csproj b/Aqua/Aqua.csproj index 42977ff..83d6ba3 100644 --- a/Aqua/Aqua.csproj +++ b/Aqua/Aqua.csproj @@ -47,7 +47,7 @@ - + @@ -62,7 +62,7 @@ PreserveNewest - + PreserveNewest diff --git a/Aqua/Commands/Manager.cs b/Aqua/Commands/Manager.cs index df2b634..fe0e699 100644 --- a/Aqua/Commands/Manager.cs +++ b/Aqua/Commands/Manager.cs @@ -1,4 +1,5 @@ -using System; +using Cosmos.System; +using System; using System.Collections.Generic; using term = Aqua.Terminal.Terminal; diff --git a/Aqua/Graphics/Base/Window.cs b/Aqua/Graphics/Base/Window.cs index 19852a0..9698c60 100644 --- a/Aqua/Graphics/Base/Window.cs +++ b/Aqua/Graphics/Base/Window.cs @@ -48,8 +48,9 @@ public void Update(Canvas canvas) if (windowEditMode) { // Move the window to the cursor's position, with the cursor being in the center of the window. - x = (uint)MouseManager.X - (uint)(width / 2); - y = (uint)MouseManager.Y - (uint)(height / 2); + this.x = (uint)MouseManager.X - (uint)(width / 2); + this.y = (uint)MouseManager.Y - (uint)(height / 2); + canvas.DrawFilledRectangle(Color.White, (int)this.x, (int)this.y, (int)this.width, (int)this.height); // If a mouse button is pressed, execute an event. if (MouseManager.LastMouseState == MouseState.Right) diff --git a/Aqua/Kernel.cs b/Aqua/Kernel.cs index 9767f59..2f0554b 100644 --- a/Aqua/Kernel.cs +++ b/Aqua/Kernel.cs @@ -54,30 +54,12 @@ public void FirstRun() Console.ForegroundColor = ConsoleColor.Gray; Console.WriteLine("Setting up things for you..."); - // Format the partition using FAT32. - // Why would we need this at first start ? - /*try - { - Console.ForegroundColor = ConsoleColor.DarkGray; - //fs.Disks[0].CreatePartition(fs.Disks[0].Size); - - fs.Disks[0].Clear(); - fs.Disks[0].CreatePartition(fs.Disks[0].Size); - - Console.WriteLine(); - term.DebugWrite("Successfully formatted the partition using FAT32.\n\n", 1); - } - catch (Exception e) - { - CrashHandler.Handle(e); - }*/ - // Detect if the emulator is NOT VirtualBox or QEMU. // These emulators/virtualizers cannot support the filesystem completely for now. if (!VMTools.IsVirtualBox || !VMTools.IsQEMU) { // Create the AquaSys directory. - // THIS IS OBLIGATORY FOR SYSTEM APPS. + // THIS IS OBLIGATORY FOR MOST SYSTEM APPS. if (!System.IO.Directory.Exists(@"0:\AquaSys")) { try @@ -349,7 +331,7 @@ public static void StartUp() cursorPos = Console.GetCursorPosition(); if (!VMTools.IsVMWare) - Sounds.Sounds.StartupSound(); + Sounds.Sounds.LogonSound(); // Surprise tool that will help us later. /*Random rnd = new Random(); diff --git a/Aqua/Miscellaneous/Activation/KeyDecryption.cs b/Aqua/Miscellaneous/Activation/KeyDecryption.cs index 49fa6fb..9c4f773 100644 --- a/Aqua/Miscellaneous/Activation/KeyDecryption.cs +++ b/Aqua/Miscellaneous/Activation/KeyDecryption.cs @@ -4,19 +4,40 @@ namespace Aqua.Miscellaneous.Activation { public class KeyDecryption { - public static string DecryptKey(string a) + private const int V = 2; + + public static string Decrypt(string a) + { + string c = null; + int p = V; + + foreach (char d in a) + { + if (d % V == 0) + { + c += (char)(d + p); + } + else + { + c += (char)(d - p); + } + } + return c; + } + + public static string Encrypt(string a) { string c = null; foreach (char d in a) { - if (d % 2 == 0) + if (d % V == 0) { - c += (char)(d + 2); + c += (char)(d - V); } else { - c += (char)(d - 2); + c += (char)(d + V); } } return c; diff --git a/Aqua/Miscellaneous/Compatibility/TextEditor.cs b/Aqua/Miscellaneous/Compatibility/TextEditor.cs index dd42ff7..78bacae 100644 --- a/Aqua/Miscellaneous/Compatibility/TextEditor.cs +++ b/Aqua/Miscellaneous/Compatibility/TextEditor.cs @@ -1089,7 +1089,6 @@ static public string LootiTerminal() if (toreturn.Length > 0) { - arrow = toreturn[toreturn.Length - 1] + arrow; toreturn = toreturn.Remove(toreturn.Length - 1, 1); } } diff --git a/Aqua/Miscellaneous/CompileTime.cs b/Aqua/Miscellaneous/CompileTime.cs index 97951e0..b3feb1a 100644 --- a/Aqua/Miscellaneous/CompileTime.cs +++ b/Aqua/Miscellaneous/CompileTime.cs @@ -1,7 +1,7 @@ using System; namespace Aqua.Miscellaneous { static class Compilation { - public static readonly string Date = @"09/02/2023"; - public static readonly string Time = @"20:54:39,33"; + public static readonly string Date = @"10/02/2023"; + public static readonly string Time = @"16:19:54,55"; } } diff --git a/Aqua/Miscellaneous/TEDEditor.cs b/Aqua/Miscellaneous/TEDEditor.cs index 5d344eb..3037c43 100644 --- a/Aqua/Miscellaneous/TEDEditor.cs +++ b/Aqua/Miscellaneous/TEDEditor.cs @@ -1,6 +1,7 @@ using Aqua.Terminal; using System; using System.IO; +using System.Runtime.InteropServices; namespace Aqua.Miscellaneous { @@ -89,8 +90,44 @@ public static bool DrawUpperBar(int x, int y, string path, string oldC, string n Console.SetCursorPosition(Console.WindowWidth - path.Length, y); Console.Write(path); + if (newC != oldC) + { + Console.BackgroundColor = ConsoleColor.Red; + Console.ForegroundColor = ConsoleColor.White; + + string status = "Unsaved"; + Console.SetCursorPosition(Console.WindowWidth - status.Length, y + 1); + Console.Write(status); + } + else + { + Console.BackgroundColor = ConsoleColor.Green; + Console.ForegroundColor = ConsoleColor.Black; + + string status = "Saved"; + Console.SetCursorPosition(Console.WindowWidth - status.Length, y + 1); + Console.Write(status); + } + Console.SetCursorPosition(x, y + 1); + for (int screenX = x; screenX <= Console.WindowWidth; screenX++) + { + Console.Write(' '); + } + + Console.SetCursorPosition(x, y + 1); + if (newC.Length != 0) + { + int chars = newC.Length; + chars--; + Console.Write("Characters : [" + chars + "]"); + } + else + Console.Write("Characters : [No characters yet]"); + Console.BackgroundColor = ConsoleColor.Black; + Console.ForegroundColor = ConsoleColor.White; + Console.SetCursorPosition(x, y + 2); return true; } catch @@ -102,6 +139,7 @@ public static bool DrawUpperBar(int x, int y, string path, string oldC, string n public static void Editor(string path) { string fileContents = File.ReadAllText(path), oldFC = File.ReadAllText(path); + string toreturn = fileContents; int defaultYPos = 2; for (; ; ) @@ -137,6 +175,13 @@ public static void Editor(string path) } } } + else if (input.Key == ConsoleKey.LeftArrow) + { + if (toreturn.Length > 0) + { + toreturn = toreturn.Remove(toreturn.Length - 1, 1); + } + } else if ((input.Modifiers & ConsoleModifiers.Control) != 0) { if (input.Key == ConsoleKey.S) @@ -146,7 +191,7 @@ public static void Editor(string path) } else if (input.Key == ConsoleKey.K) { - fileContents = null; + fileContents = " "; Console.Clear(); Console.SetCursorPosition(0, defaultYPos); diff --git a/Aqua/Sounds/Shutdown-alt.wav b/Aqua/Sounds/Logoff.wav similarity index 100% rename from Aqua/Sounds/Shutdown-alt.wav rename to Aqua/Sounds/Logoff.wav diff --git a/Aqua/Sounds/Startup.wav b/Aqua/Sounds/Logon.wav similarity index 100% rename from Aqua/Sounds/Startup.wav rename to Aqua/Sounds/Logon.wav diff --git a/Aqua/Sounds/Sounds.cs b/Aqua/Sounds/Sounds.cs index 373505b..3b5c20b 100644 --- a/Aqua/Sounds/Sounds.cs +++ b/Aqua/Sounds/Sounds.cs @@ -6,11 +6,18 @@ namespace Aqua.Sounds public class Sounds { // To add an audio file, go to the file propreties in Visual Studio and make it embedded. - [ManifestResourceStream(ResourceName = "Aqua.Sounds.Startup.wav")] static byte[] sound; + [ManifestResourceStream(ResourceName = "Aqua.Sounds.Logon.wav")] static byte[] logonSound; + [ManifestResourceStream(ResourceName = "Aqua.Sounds.Logoff.wav")] static byte[] logoffSound; - public static void StartupSound() + public static void LogonSound() { - var audioStream = MemoryAudioStream.FromWave(sound); + var audioStream = MemoryAudioStream.FromWave(logonSound); + Kernel.mixer.Streams.Add(audioStream); + } + + public static void LogoffSound() + { + var audioStream = MemoryAudioStream.FromWave(logoffSound); Kernel.mixer.Streams.Add(audioStream); } } diff --git a/Aqua/Terminal/Accounts/Accounts.cs b/Aqua/Terminal/Accounts/Accounts.cs index 2f365f8..4616f1b 100644 --- a/Aqua/Terminal/Accounts/Accounts.cs +++ b/Aqua/Terminal/Accounts/Accounts.cs @@ -1,6 +1,9 @@ using Aqua.Commands; using Aqua.Network; +using Aqua.Sounds; +using Cosmos.System; using System; +using Console = System.Console; using term = Aqua.Terminal.Terminal; namespace Aqua.Terminal.Accounts @@ -26,6 +29,8 @@ public override string Execute(string[] args) case "out": term.DebugWrite($"See you later, {LoginSystem.username}.", 0); + if (!VMTools.IsVMWare) + Sounds.Sounds.LogoffSound(); Network.Network.xClient.Close(); Cosmos.HAL.Global.PIT.Wait(2250); diff --git a/Aqua/Terminal/Accounts/LoginSystem.cs b/Aqua/Terminal/Accounts/LoginSystem.cs index fe715e1..ceb8c1b 100644 --- a/Aqua/Terminal/Accounts/LoginSystem.cs +++ b/Aqua/Terminal/Accounts/LoginSystem.cs @@ -1,4 +1,5 @@ using Aqua.Commands.Executables; +using Aqua.Miscellaneous.Activation; using System; using System.IO; using static Aqua.Kernel; @@ -27,7 +28,7 @@ public static void Start() LogString(); - if (!File.Exists(@"0:\AquaSys\Login\Username.cfg") || !File.Exists(@"0:\AquaSys\Login\Password.cfg")) + if (!File.Exists(@"0:\AquaSys\Login\Username.acf") || !File.Exists(@"0:\AquaSys\Login\Password.acf")) SetUsername(); else GetUsername(); @@ -37,7 +38,7 @@ private static void LogString() { String logString; - if (!File.Exists(@"0:\AquaSys\Login\Username.cfg") || !File.Exists(@"0:\AquaSys\Login\Password.cfg")) + if (!File.Exists(@"0:\AquaSys\Login\Username.acf") || !File.Exists(@"0:\AquaSys\Login\Password.acf")) logString = "Please create an account."; else logString = "Please input your account information."; @@ -78,7 +79,7 @@ public static void SetUsername() if (input != "guest") { - File.WriteAllText(@"0:\AquaSys\Login\Username.cfg", input); + File.WriteAllText(@"0:\AquaSys\Login\Username.acf", KeyDecryption.Encrypt(input)); username = input; // SetPassword(); @@ -103,8 +104,8 @@ public static void SetPassword() String input = Console.ReadLine(); - File.Create(@"0:\AquaSys\Login\Password.cfg"); - File.WriteAllText(@"0:\AquaSys\Login\Password.cfg", input); + File.Create(@"0:\AquaSys\Login\Password.acf"); + File.WriteAllText(@"0:\AquaSys\Login\Password.acf", KeyDecryption.Encrypt(input)); // SetPassword(); SetRoot(); @@ -119,9 +120,9 @@ private static void SetRoot() ConsoleKeyInfo input = Console.ReadKey(); if (input.Key == ConsoleKey.Y) - File.WriteAllText(@"0:\AquaSys\Login\Root.cfg", "true"); + File.WriteAllText(@"0:\AquaSys\Login\Root.acf", "true"); else if (input.Key == ConsoleKey.N) - File.WriteAllText(@"0:\AquaSys\Login\Root.cfg", "false"); + File.WriteAllText(@"0:\AquaSys\Login\Root.acf", "false"); else { term.DebugWrite("The input was not recognized, try again.", 4); @@ -146,9 +147,9 @@ private static string GetUsername() Console.ForegroundColor = ConsoleColor.White; String input = Console.ReadLine(); - username = futils.ReadLine(@"0:\AquaSys\Login\Username.cfg", 0); + username = KeyDecryption.Decrypt(futils.ReadLine(@"0:\AquaSys\Login\Username.acf", 0)); - var rootCheck = futils.ReadLine(@"0:\AquaSys\Login\Root.cfg", 0); + var rootCheck = futils.ReadLine(@"0:\AquaSys\Login\Root.acf", 0); if (input == username) { @@ -187,7 +188,7 @@ public static string GetPassword() Console.ForegroundColor = ConsoleColor.Black; String input = Console.ReadLine(); - password = futils.ReadLine(@"0:\AquaSys\Login\Password.cfg", 0); + password = KeyDecryption.Decrypt(futils.ReadLine(@"0:\AquaSys\Login\Password.acf", 0)); if (input == password) Login(); diff --git a/desktop.ini b/desktop.ini new file mode 100644 index 0000000..d957fd1 --- /dev/null +++ b/desktop.ini @@ -0,0 +1,4 @@ +[ViewState] +Mode= +Vid= +FolderType=Generic