/// <summary> /// Locates the V_CODE2 in the module file, which is used to decrypt the KIFINT archive's entry file names. /// </summary> /// <param name="exeFile">The file path to the executable or bin file.</param> /// <returns>The decrypted V_CODE2 string resource.</returns> /// /// <exception cref="ArgumentNullException"> /// <paramref name="exeFile"/> is null. /// </exception> /// <exception cref="ArgumentException"> /// <paramref name="exeFile"/> is an empty string or whitespace. /// </exception> /// <exception cref="Win32Exception"> /// An error occurred during loading of the V_CODE resources. /// </exception> public static void FindVCodes(string exeFile, out string vcode, out string vcode2) { VCodes vcodes = Load(exeFile); vcode = vcodes.VCode; vcode2 = vcodes.VCode2; }
public static bool TryFindVCodes(string exeFile, out string vcode, out string vcode2) { try { VCodes vcodes = Load(exeFile); vcode = vcodes.VCode; vcode2 = vcodes.VCode2; return(true); } catch { vcode = default; vcode2 = default; return(false); } }