This commit is contained in:
Bitl 2021-09-27 13:56:20 -07:00
parent 1323edc7f5
commit aff1d5695b
1 changed files with 17 additions and 17 deletions

View File

@ -640,8 +640,6 @@ public class GlobalFuncs
FileFormat.ClientInfo DefaultClientInfo = new FileFormat.ClientInfo(); FileFormat.ClientInfo DefaultClientInfo = new FileFormat.ClientInfo();
bool placeholder = false; bool placeholder = false;
if (GlobalVars.AdminMode)
{
string ClientName = ""; string ClientName = "";
if (File.Exists(path + "\\RobloxApp_client.exe")) if (File.Exists(path + "\\RobloxApp_client.exe"))
@ -655,10 +653,12 @@ public class GlobalFuncs
} }
else else
{ {
IOException clientNotFoundEX = new IOException("Could not find client exe for MD5 generation."); IOException clientNotFoundEX = new IOException("Could not find client exe file. It must be named either RobloxApp.exe or RobloxApp_client.exe in order to function.");
throw clientNotFoundEX; throw clientNotFoundEX;
} }
if (GlobalVars.AdminMode)
{
string ClientMD5 = File.Exists(path + ClientName) ? SecurityFuncs.GenerateMD5(path + ClientName) : ""; string ClientMD5 = File.Exists(path + ClientName) ? SecurityFuncs.GenerateMD5(path + ClientName) : "";
if (!string.IsNullOrWhiteSpace(ClientMD5)) if (!string.IsNullOrWhiteSpace(ClientMD5))