From aff1d5695b0806a8fd6f9aadd82d158aef4c6583 Mon Sep 17 00:00:00 2001 From: Bitl Date: Mon, 27 Sep 2021 13:56:20 -0700 Subject: [PATCH] oops --- .../StorageAndFunctions/GlobalFuncs.cs | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/Novetus/NovetusCore/StorageAndFunctions/GlobalFuncs.cs b/Novetus/NovetusCore/StorageAndFunctions/GlobalFuncs.cs index 92efea4..df34ded 100644 --- a/Novetus/NovetusCore/StorageAndFunctions/GlobalFuncs.cs +++ b/Novetus/NovetusCore/StorageAndFunctions/GlobalFuncs.cs @@ -640,25 +640,25 @@ public class GlobalFuncs FileFormat.ClientInfo DefaultClientInfo = new FileFormat.ClientInfo(); bool placeholder = false; + string ClientName = ""; + + if (File.Exists(path + "\\RobloxApp_client.exe")) + { + ClientName = "\\RobloxApp_client.exe"; + } + else if (File.Exists(path + "\\RobloxApp.exe")) + { + ClientName = "\\RobloxApp.exe"; + DefaultClientInfo.LegacyMode = true; + } + else + { + 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; + } + if (GlobalVars.AdminMode) { - string ClientName = ""; - - if (File.Exists(path + "\\RobloxApp_client.exe")) - { - ClientName = "\\RobloxApp_client.exe"; - } - else if (File.Exists(path + "\\RobloxApp.exe")) - { - ClientName = "\\RobloxApp.exe"; - DefaultClientInfo.LegacyMode = true; - } - else - { - IOException clientNotFoundEX = new IOException("Could not find client exe for MD5 generation."); - throw clientNotFoundEX; - } - string ClientMD5 = File.Exists(path + ClientName) ? SecurityFuncs.GenerateMD5(path + ClientName) : ""; if (!string.IsNullOrWhiteSpace(ClientMD5))