Skip to content

Commit

Permalink
Merge pull request #107 from Owen2k6/1.5
Browse files Browse the repository at this point in the history
1.5
  • Loading branch information
Owen2k6 authored Feb 3, 2024
2 parents e3bb523 + 5b2e162 commit f9956cf
Show file tree
Hide file tree
Showing 200 changed files with 4,069 additions and 3,671 deletions.
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,17 @@ GoOS/obj/GoOS.csproj.nuget.g.props
GoOS/obj/GoOS.csproj.nuget.g.targets
GoOS/obj/project.assets.json
GoOS/obj/project.nuget.cache
GoOS/obj/Debug/net6.0/GoOS.assets.cache
GoOS/obj/Debug/net6.0/GoOS.csproj.AssemblyReference.cache
GoOS/obj/GoOS.csproj.nuget.dgspec.json
GoOS/obj/GoOS.csproj.nuget.g.props
GoOS/obj/GoOS.csproj.nuget.g.targets
GoOS/obj/project.assets.json
GoOS/obj/project.nuget.cache
GoOS/obj/Debug/net6.0/GoOS.assets.cache
GoOS/obj/Debug/net6.0/GoOS.csproj.AssemblyReference.cache
GoOS/obj/GoOS.csproj.nuget.dgspec.json
GoOS/obj/GoOS.csproj.nuget.g.props
GoOS/obj/GoOS.csproj.nuget.g.targets
GoOS/obj/project.assets.json
GoOS/obj/project.nuget.cache
Binary file added Art/QC-GoStore.pdn
Binary file not shown.
Binary file added Art/QC-Gosplorer.pdn
Binary file not shown.
Binary file added Art/professional.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 5 additions & 2 deletions GoOS/9xCode/Interpreter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
using System.IO;
using System.Text;
using System.Threading;
using Cosmos.System;
using GoOS.GUI;
using PrismAPI.Graphics;
using GoGL.Graphics;
using static ConsoleColorEx;
using Console = BetterConsole;
using ConsoleColor = PrismAPI.Graphics.Color;
using ConsoleColor = GoGL.Graphics.Color;
using static GoOS.Resources;

// 9xCode Beta 3.1
Expand Down Expand Up @@ -60,6 +61,8 @@ private static void Interpret(string[] code)
{
WindowManager.Update(); // Don't lock the WM

if (KeyboardManager.TryReadKey(out var k) && k.Modifiers == ConsoleModifiers.Control && k.Key == ConsoleKeyEx.C) return;

string line = code[i].Trim().Replace("\\n", "\n");

#region Globals
Expand Down
2 changes: 1 addition & 1 deletion GoOS/9xCode/StringToConsoleColor.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System.Collections.Generic;
using ConsoleColor = PrismAPI.Graphics.Color;
using ConsoleColor = GoGL.Graphics.Color;
using static ConsoleColorEx;

namespace GoOS._9xCode
Expand Down
4 changes: 2 additions & 2 deletions GoOS/BetterConsole/BetterConsole.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
using Cosmos.System;
using GoOS.GUI;
using GoOS.Themes;
using PrismAPI.Graphics;
using GoGL.Graphics;
using static GoOS.Resources;

/// <summary>
/// <see cref="BetterConsole"/> class
/// </summary>
public static class BetterConsole
public static class BetterConsole //Shitter Console
{
/* The canvas for the console */
public static Canvas Canvas;
Expand Down
6 changes: 3 additions & 3 deletions GoOS/BetterConsole/VMBetterConsole.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
using GoOS.GUI;
using GoOS.Themes;
using IL2CPU.API.Attribs;
using PrismAPI.Graphics;
using PrismAPI.Graphics.Fonts;
using GoGL.Graphics;
using GoGL.Graphics.Fonts;

/// <summary>
/// <see cref="VMBetterConsole"/> class
/// </summary>
public class VMBetterConsole
public class VMBetterConsole //Shitter Console
{
/* The raw global font */
[ManifestResourceStream(ResourceName = "GoOS.Resources.Font_1x.btf")]
Expand Down
2 changes: 1 addition & 1 deletion GoOS/Commands/Delete.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static void DeleteFile(string args)
;
}

public static void UniveralDelete(string args)
public static void UniversalDelete(string args)
{
if (args.Contains("0:\\"))
{
Expand Down
16 changes: 8 additions & 8 deletions GoOS/Commands/ExtendedFilesystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ public static void CopyFile(string from, string to)

string name = FullName.Substring(FullName.IndexOf("."));

var Contents = File.ReadAllText(from);
var Contents = File.ReadAllBytes(from);
File.Create(to + FullName);
File.WriteAllText(to + FullName, Contents);
File.WriteAllBytes(to + FullName, Contents);
}
else
{
Expand All @@ -34,9 +34,9 @@ public static void CopyFile(string from, string to)

string name = FullName.Substring(FullName.IndexOf("."));

var Contents = File.ReadAllText(from);
var Contents = File.ReadAllBytes(from);
File.Create(to + FullName);
File.WriteAllText(to + FullName, Contents);
File.WriteAllBytes(to + FullName, Contents);
}
}

Expand All @@ -50,9 +50,9 @@ public static void MoveFile(string from, string to)

string name = FullName.Substring(FullName.IndexOf("."));

var Contents = File.ReadAllText(from);
var Contents = File.ReadAllBytes(from);
File.Create(to + FullName);
File.WriteAllText(to + FullName, Contents);
File.WriteAllBytes(to + FullName, Contents);
File.Delete(from);
}
else
Expand All @@ -61,9 +61,9 @@ public static void MoveFile(string from, string to)

string name = FullName.Substring(FullName.IndexOf("."));

var Contents = File.ReadAllText(from);
var Contents = File.ReadAllBytes(from);
File.Create(to + FullName);
File.WriteAllText(to + FullName, Contents);
File.WriteAllBytes(to + FullName, Contents);
File.Delete(from);
}
}
Expand Down
2 changes: 1 addition & 1 deletion GoOS/Commands/dir.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static void Run()

foreach (var file in directory_list)
{
if (file.EndsWith(".gms"))
if (file.EndsWith(".gms") && !Kernel.devMode)
{
log(ThemeManager.ErrorText, "<System> Protected File");
}
Expand Down
103 changes: 0 additions & 103 deletions GoOS/Commands/systest.cs

This file was deleted.

2 changes: 1 addition & 1 deletion GoOS/Core.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Threading;
using Console = BetterConsole;
using ConsoleColor = PrismAPI.Graphics.Color;
using ConsoleColor = GoGL.Graphics.Color;

namespace GoOS
{
Expand Down
3 changes: 1 addition & 2 deletions GoOS/GUI/Apps/About.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
using System.Text;
using System.Threading.Tasks;
using IL2CPU.API.Attribs;
using PrismAPI.Graphics;
using PrismAPI.UI;
using GoGL.Graphics;

namespace GoOS.GUI.Apps
{
Expand Down
18 changes: 17 additions & 1 deletion GoOS/GUI/Apps/AppManager.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;
using IL2CPU.API.Attribs;
using PrismAPI.Graphics;
using GoGL.Graphics;
using static GoOS.Resources;

namespace GoOS.GUI.Apps
Expand Down Expand Up @@ -72,6 +72,18 @@ public AppManager()
Image = GoStoreicon,
Clicked = Store_Click
},
#if BUILD_GOWEB
new Button(this, 84, 100, 64, 80, "GoWeb")
{
UseSystemStyle = false,
BackgroundColour = Color.LightGray,
SelectionColour = new Color(100, 100, 100),
TextColour = Color.White,

Image = goWebIcon,
Clicked = GoWeb_Click
},
#endif
};
CloseButton = new Button(this, Convert.ToUInt16(Contents.Width - 90), Convert.ToUInt16(Contents.Height - 30), 80, 20, "Close") { Clicked = CloseButton_Click };

Expand All @@ -93,6 +105,10 @@ public AppManager()

private void Store_Click() => WindowManager.AddWindow(new GoStore.MainFrame());

#if BUILD_GOWEB
private void GoWeb_Click() => WindowManager.AddWindow(new GoWeb.GoWebWindow());
#endif

private void CloseButton_Click() => Dispose();
}
}
29 changes: 0 additions & 29 deletions GoOS/GUI/Apps/BrownGhost.cs

This file was deleted.

3 changes: 1 addition & 2 deletions GoOS/GUI/Apps/Clock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
using System.Text;
using System.Threading.Tasks;
using IL2CPU.API.Attribs;
using PrismAPI.Graphics;
using PrismAPI.UI;
using GoGL.Graphics;
using static GoOS.Resources;

namespace GoOS.GUI.Apps
Expand Down
2 changes: 1 addition & 1 deletion GoOS/GUI/Apps/CustomInterface.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Text;
using System.Threading.Tasks;
using IL2CPU.API.Attribs;
using PrismAPI.Graphics;
using GoGL.Graphics;
using static GoOS.Resources;

namespace GoOS.GUI.Apps
Expand Down
2 changes: 1 addition & 1 deletion GoOS/GUI/Apps/Cut.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Text;
using System.Threading.Tasks;
using IL2CPU.API.Attribs;
using PrismAPI.Graphics;
using GoGL.Graphics;
using System.IO;
using System.Threading;
using static GoOS.Resources;
Expand Down
Loading

0 comments on commit f9956cf

Please sign in to comment.