From 51e33b48bf3c23195db38feab03b1bb233b5fbb8 Mon Sep 17 00:00:00 2001 From: Owen2k6 Date: Sun, 19 Mar 2023 18:13:54 +0000 Subject: [PATCH] aa aa --- GoOS/.vs/GoOS/v17/.suo | Bin 90624 -> 106496 bytes GoOS/Commands/Help.cs | 30 +++++++++++++++++++++++------- GoOS/Kernel.cs | 6 +++--- GoOS/Settings/ControlPanel.cs | 26 +++++++++++++++++++++++--- 4 files changed, 49 insertions(+), 13 deletions(-) diff --git a/GoOS/.vs/GoOS/v17/.suo b/GoOS/.vs/GoOS/v17/.suo index 2c7b55277a6045da69b060afc7136460a40bfe7b..c462d759b6fd65241a401fa8f9bb2f98aeaf5b72 100644 GIT binary patch delta 3674 zcmd^>dr(yO702(nyDST=xFA#nQ6BO}9)di?mBkPxQ{^q7p(+B2Mg$_eHcG@re8j2= zyT@j+HbGaXYTF^Om$;-c=@MyU(xeG9$z;??Mk3Sch)J9l{eu+g_pZ<(O;XdD%(R`} zJD>YIzu)hibI4}-UX4tRlRpavn*Yf3Mo34Y71?S7cv zrn^0@&mzp-=+5;uR=2HaSDTAw`MX27uR1aD6y#>GpYM2dY9s0X%0y3=e8$tDUO80>@k*jKyxMCv zZ}w`Wd*-SryXKhqV55LF@K6TIK?PU~b^w>3AH!piH0t#M@#TgLyRSh*YuPxjKq-%# zJIg{jN%W!$zB6wRm9uev$yA#r4=!Ar2#OYMu3Db)HL?+AT{38o5Z6R%C2izwvMmrT z^96oY3ILuiM(OI@)BFD$`&o!B1K!OC<_^)k0*3mz)wLd zNMN7B({$NfwAJG+ROP*o+55=0RA~t@P!tV13w2JQ(x6v5yENS+N!PsxfBM}5?;?aj;apj`DRI6s~`d(?^&#+uB+BT|nQ=!P~ zEr-$sR)K@y8E^>v1RMs*pa=wkc+k$ev_y}2kS>51*_f79)CEcQ^%BZ%&;#s10=?j6 zAdk<1vJV7<-%Pe$MEM$c9sCwJK|fP^Q1Blh$zG?fcTj&9{1ITL-n2iFC*I!=SXzpb zj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{7W6{1$y8GA@Fw8swYEnV-@qWDTopRD|0d5%c zpy{lH35Uznw~y}-Zd#?TJ0St2qx0X1I2@7;1<@-uwYO~ATC`zX0lGr@cyhctu5V^b z`pypRqwiWYPK@7@`Q^XU{BCh}0i-cq!yecFQm1sI6Dv>UYnI$zf<6CD!7M&e4SY}+ ze{3_<0qjBN>kV_gBF(FAZE?4^ZgnUtC$wAHT(M6m;n7k z{^4xo8;gUHpJbz8YdqL>f7UDm;DbVF4NewfX$NcPQdgj(PKJ@7C-{PLH# zkcW;f1)2ZVMCAKG}PU>?88OEu9>KsO->76p7Y9YnB)ngX 1) + if (page > 3) { page = 1; } diff --git a/GoOS/Kernel.cs b/GoOS/Kernel.cs index d3a5aff3d6..c93420d95e 100644 --- a/GoOS/Kernel.cs +++ b/GoOS/Kernel.cs @@ -208,12 +208,12 @@ protected override void BeforeRun() { } - if (username == null) + if (username == null || username == "") { username = "user"; } - if (computername == null) + if (computername == null || computername == "") { computername = "GoOS"; @@ -262,7 +262,7 @@ protected override void BeforeRun() clog(ThemeManager.Startup18, "║═█████████████████████████████████████═══════════════════════════════════════║"); clog(ThemeManager.Startup19, "╚═════════════════════════════════════════════════════════════════════════════╝"); clog(ThemeManager.WindowText, "╔═════════════════════════════════════════════════════════════════════════════╗"); - clog(ThemeManager.WindowText, "║ Notice. This is a beta build of GoOS 1.5. There will be bugs and issues!! ║"); + clog(ThemeManager.WindowText, "║ GoOS Beta release 1.5a0. Report bugs in #issues on the github! 19/03/2023 ║"); clog(ThemeManager.WindowText, "╚═════════════════════════════════════════════════════════════════════════════╝"); string roota = @"0:\"; diff --git a/GoOS/Settings/ControlPanel.cs b/GoOS/Settings/ControlPanel.cs index f9dab47463..f39862f32c 100644 --- a/GoOS/Settings/ControlPanel.cs +++ b/GoOS/Settings/ControlPanel.cs @@ -485,18 +485,29 @@ private static void Run() //YOU ARE FRENCH IF YOU TOUCH IT // no System.IO.File.Delete(@"0:\content\sys\setup.gms"); + emptyDir(@"0:\content\prf"); System.IO.Directory.Delete(@"0:\content\prf"); + emptyDir(@"0:\content\"); + System.IO.Directory.Delete(@"0:\content\"); + emptyDir(@"0:\"); + System.IO.Directory.Delete(@"0:\"); + System.IO.File.Delete(@"0:\content\sys\version.gms"); + System.IO.File.Delete(@"0:\content\sys\userinfo.gms"); + System.IO.File.Delete(@"0:\content\sys\option-showprotectedfiles.gms"); + System.IO.File.Delete(@"0:\content\sys\option-editprotectedfiles.gms"); + System.IO.File.Delete(@"0:\content\sys\option-deleteprotectedfiles.gms"); var directory_list = System.IO.Directory.GetFiles(@"0:\"); foreach (var file in directory_list) { System.IO.File.Delete(@"0:\" + file); } var directory_list3 = System.IO.Directory.GetDirectories(@"0:\"); - foreach (var file in directory_list3) + foreach (var directory in directory_list3) { - System.IO.File.Delete(@"0:\" + file); + System.IO.File.Delete(@"0:\" + directory); } - Kernel.FS.Initialize(false); + Kernel.FS.Initialize(true); + Cosmos.System.FileSystem.Disk. } catch (Exception monkeyballs) { @@ -568,5 +579,14 @@ private static void Run() Console.BackgroundColor = Black; Console.Clear(); } + + private static void emptyDir(string path) + { + var dirtokill = System.IO.Directory.GetFiles(path); + foreach (var files in dirtokill) + { + System.IO.File.Delete(@"0:\" + files); + } + } } } \ No newline at end of file