aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS-TheRevival/MainForms/Shiftoriums.vb
diff options
context:
space:
mode:
authorEverythingWindows <[email protected]>2022-11-03 02:46:32 +0700
committerEverythingWindows <[email protected]>2022-11-03 02:46:32 +0700
commit0f683e5c3535e8c3f20230aef44f6da1894e3746 (patch)
treea22d4aaa7930dcb71d88a735ddbcd1177c9c024c /ShiftOS-TheRevival/MainForms/Shiftoriums.vb
parentf8fc91385f8642701dfe9bd9a3b757aca8012d7f (diff)
downloadshiftos-therevival-old-0f683e5c3535e8c3f20230aef44f6da1894e3746.tar.gz
shiftos-therevival-old-0f683e5c3535e8c3f20230aef44f6da1894e3746.tar.bz2
shiftos-therevival-old-0f683e5c3535e8c3f20230aef44f6da1894e3746.zip
finished shiftorium
Diffstat (limited to 'ShiftOS-TheRevival/MainForms/Shiftoriums.vb')
-rw-r--r--ShiftOS-TheRevival/MainForms/Shiftoriums.vb31
1 files changed, 31 insertions, 0 deletions
diff --git a/ShiftOS-TheRevival/MainForms/Shiftoriums.vb b/ShiftOS-TheRevival/MainForms/Shiftoriums.vb
new file mode 100644
index 0000000..5beb371
--- /dev/null
+++ b/ShiftOS-TheRevival/MainForms/Shiftoriums.vb
@@ -0,0 +1,31 @@
+Module Shiftoriums
+ Public Sub InstallFeature(IsCLI As Boolean, Feature As String, Codepoint As Integer)
+ Dim TempCP As Integer = Convert.ToInt32(Strings.ComputerInfo(2))
+ If TempCP >= Codepoint Then
+ Dim success As Boolean = False
+ Select Case Feature
+ Case "man"
+ Strings.AvailableFeature(0) = "1"
+ success = True
+ Case "clear"
+ Strings.AvailableFeature(1) = "1"
+ success = True
+ End Select
+ If success = False Then
+ If IsCLI = True Then
+ Terminal.TextBox1.Text = Terminal.TextBox1.Text & Environment.NewLine & "Shiftorium: Invalid command or feature already installed"
+ End If
+ Else
+ TempCP = TempCP - Codepoint
+ Strings.ComputerInfo(2) = Convert.ToString(TempCP)
+ If IsCLI = True Then
+ Terminal.TextBox1.Text = Terminal.TextBox1.Text & Environment.NewLine & "Feature has been install succesfully"
+ End If
+ End If
+ Else
+ If IsCLI = True Then
+ Terminal.TextBox1.Text = Terminal.TextBox1.Text & Environment.NewLine & "Shiftorium: Insufficent Codepoint"
+ End If
+ End If
+ End Sub
+End Module