Skip to content

Commit

Permalink
aa
Browse files Browse the repository at this point in the history
aa
  • Loading branch information
Owen2k6 committed Mar 19, 2023
1 parent 4c8d1f7 commit 51e33b4
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 13 deletions.
Binary file modified GoOS/.vs/GoOS/v17/.suo
Binary file not shown.
30 changes: 23 additions & 7 deletions GoOS/Commands/Help.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,28 @@ public static void Main()
switch (page)
{
case 1:
log(ThemeManager.WindowText, "HELP - Shows this exact page.");
log(ThemeManager.WindowText, "RUN - Run a goexe file."); // Useless comment, ignore me or your family goes away.
log(ThemeManager.WindowText, "delfile - Delete a file");
log(ThemeManager.WindowText, "deldir - Delete a directory");
log(ThemeManager.WindowText, "mkfile - Make a file");
log(ThemeManager.WindowText, "mkdir - Make a Directory");
log(ThemeManager.WindowText, "help - Shows this exact page.");
log(ThemeManager.WindowText, "run {program}- Run a goexe file.");
log(ThemeManager.WindowText, "delfile {file} - Delete a file.");
log(ThemeManager.WindowText, "deldir {file} - Delete a directory.");
log(ThemeManager.WindowText, "mkfile {file} - Make a file.");
log(ThemeManager.WindowText, "mkdir {file} - Make a Directory.");
break;
case 2:
log(ThemeManager.WindowText, "cd {file} - enter a directory.");
log(ThemeManager.WindowText, "cd.. - go to parent directory.");
log(ThemeManager.WindowText, "cdr - Jump to root from anywhere.");
log(ThemeManager.WindowText, "dir - list all files and folders in the current directory.");
log(ThemeManager.WindowText, "vm {vmname}- Make a file.");
log(ThemeManager.WindowText, "toggletheme - Make a Directory.");
break;
case 3:
log(ThemeManager.WindowText, "settings - open the settings app.");
log(ThemeManager.WindowText, "notepad - open the notepad app.");
log(ThemeManager.WindowText, "clear - clears the terminal.");
//log(ThemeManager.WindowText, "dir - list all files and folders in the current directory.");
//log(ThemeManager.WindowText, "vm - Make a file");
//log(ThemeManager.WindowText, "toggletheme - Make a Directory");
break;
default:
log(ThemeManager.ErrorText, "Invalid page number.");
Expand All @@ -69,7 +85,7 @@ public static void Main()
}

page++;
if (page > 1)
if (page > 3)
{
page = 1;
}
Expand Down
6 changes: 3 additions & 3 deletions GoOS/Kernel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down Expand Up @@ -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:\";
Expand Down
26 changes: 23 additions & 3 deletions GoOS/Settings/ControlPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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);
}
}
}
}

0 comments on commit 51e33b4

Please sign in to comment.