Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Belim authored Aug 10, 2021
1 parent a69f412 commit e2b18e5
Show file tree
Hide file tree
Showing 9 changed files with 196 additions and 152 deletions.
8 changes: 8 additions & 0 deletions src/RSV/Helpers/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Diagnostics;
using System.IO;
using System.Net;
using System.Security.Principal;
using System.Windows.Forms;

namespace ReadySunValley.Helpers
Expand Down Expand Up @@ -62,6 +63,13 @@ public static String FormatBytes(long byteCount)
return (Math.Sign(byteCount) * num).ToString() + suf[place];
}

// Check elevation
public static bool IsAdministrator()
{
return (new WindowsPrincipal(WindowsIdentity.GetCurrent()))
.IsInRole(WindowsBuiltInRole.Administrator);
}

/// <summary>
/// Launch Urls in richSumming control
/// </summary>
Expand Down
9 changes: 9 additions & 0 deletions src/RSV/Locales/Locale.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/RSV/Locales/Locale.de.resx
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,9 @@
<value>Möchtest du die Ergebnisse mit dem Tool "WhyNotWin11" vergleichen?</value>
<comment>GUI</comment>
</data>
<data name="infoElevation" xml:space="preserve">
<value>Es sind erhöhte Rechte sind für die Erkennung von TPM und Secure Boot erforderlich.\n\nBitte führe die App als Administrator aus.</value>
</data>
<data name="infoUpdate" xml:space="preserve">
<value>App-Aktualisierung verfügbar</value>
<comment>GUI</comment>
Expand Down
3 changes: 3 additions & 0 deletions src/RSV/Locales/Locale.resx
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,9 @@
<value>Do you want to compare the results with the Utility "WhyNotWin11"?</value>
<comment>GUI</comment>
</data>
<data name="infoElevation" xml:space="preserve">
<value>Elevated rights are required for TPM and Secure Boot detection.\n\nPlease run the app as administrator.</value>
</data>
<data name="infoUpdate" xml:space="preserve">
<value>App update available</value>
<comment>GUI</comment>
Expand Down
2 changes: 1 addition & 1 deletion src/RSV/MainWindow.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e2b18e5

Please sign in to comment.