Update GlobalFuncs.cs
This commit is contained in:
parent
8544f4c25e
commit
c2f8608e64
|
|
@ -2021,32 +2021,7 @@ public class GlobalFuncs
|
|||
string args = "";
|
||||
GlobalVars.ValidatedExtraFiles = 0;
|
||||
|
||||
if (!info.AlreadyHasSecurity)
|
||||
{
|
||||
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)
|
||||
if (!info.AlreadyHasSecurity || !GlobalVars.AdminMode)
|
||||
{
|
||||
string validstart = "<validate>";
|
||||
string validend = "</validate>";
|
||||
|
|
@ -2105,7 +2080,6 @@ public class GlobalFuncs
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (info.CommandLineArgs.Contains("%args%"))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue