private static bool IsSteamFile64(string file) { Steamless.Unpacker.Variant31.x64.Main m = new Steamless.Unpacker.Variant31.x64.Main(); m.Initialize(m_LoggingService); if (m.CanProcessFile(file)) { return(true); } else { return(false); } }
private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); Steamless.Unpacker.Variant31.x64.Main m64 = new Steamless.Unpacker.Variant31.x64.Main(); Steamless.Unpacker.Variant31.x86.Main m86 = new Steamless.Unpacker.Variant31.x86.Main(); SteamlessOptions s = new SteamlessOptions(); Vendor sh = new Vendor(); string requiredDLLPath0 = Assembly.GetAssembly(m64.GetType()).CodeBase.Substring(8); string requiredDLLPath1 = Assembly.GetAssembly(s.GetType()).CodeBase.Substring(8); string requiredDLLPath2 = Assembly.GetAssembly(sh.GetType()).CodeBase.Substring(8); string requiredDLLPath3 = Assembly.GetAssembly(m86.GetType()).CodeBase.Substring(8); if (!File.Exists(requiredDLLPath0) || !File.Exists(requiredDLLPath1) || !File.Exists(requiredDLLPath2) || !File.Exists(requiredDLLPath3)) { MessageBox.Show("Missing dependencies"); return; } }
private static bool ProcessSteamFile64(string file) { SteamlessOptions s = new SteamlessOptions { VerboseOutput = false, KeepBindSection = false, DumpPayloadToDisk = false, DumpSteamDrmpToDisk = false }; Steamless.Unpacker.Variant31.x64.Main m = new Steamless.Unpacker.Variant31.x64.Main(); m.Initialize(m_LoggingService); if (m.ProcessFile(file, s)) { return(true); } else { return(false); } }