Update GlobalFuncs.cs

This commit is contained in:
Bitl 2021-11-19 12:54:56 -07:00
parent 8544f4c25e
commit c2f8608e64
1 changed files with 30 additions and 56 deletions

View File

@ -2021,32 +2021,7 @@ public class GlobalFuncs
string args = ""; string args = "";
GlobalVars.ValidatedExtraFiles = 0; GlobalVars.ValidatedExtraFiles = 0;
if (!info.AlreadyHasSecurity) if (!info.AlreadyHasSecurity || !GlobalVars.AdminMode)
{
if (Regex.Match(GlobalVars.UserConfiguration.PlayerTripcode, "[^a-zA-Z0-9]") != Match.Empty ||
string.IsNullOrWhiteSpace(GlobalVars.UserConfiguration.PlayerTripcode))
{
#if URI
if (label != null)
{
label.Text = "The client has been detected as modified.";
}
#elif LAUNCHER
if (box != null)
{
ConsolePrint("ERROR - Failed to launch Novetus. (The client has been detected as modified.)", 2, box);
}
#elif CMD
ConsolePrint("ERROR - Failed to launch Novetus. (The client has been detected as modified.)", 2);
#endif
#if URI || LAUNCHER
MessageBox.Show("Failed to launch Novetus. (Error: The client has been detected as modified.)", "Novetus - Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
#endif
return;
}
if (!GlobalVars.AdminMode)
{ {
string validstart = "<validate>"; string validstart = "<validate>";
string validend = "</validate>"; string validend = "</validate>";
@ -2105,7 +2080,6 @@ public class GlobalFuncs
} }
} }
} }
}
if (info.CommandLineArgs.Contains("%args%")) if (info.CommandLineArgs.Contains("%args%"))
{ {