Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public string UnpackPakFile(string SteamPath, string OutputPath, string PakFilePath)
- {
- Dictionary<string, string> operationResults = new Dictionary<string, string>();
- string assetUnpackerPath = TryGetAssetUnpackerPath(SteamPath);
- string[] assetUnpackerArgs = new string[2] { $"\"{PakFilePath}\"", $"\"{OutputPath}\"" };
- _assetUnpackerProcess.StartInfo = new ProcessStartInfo
- {
- FileName = assetUnpackerPath,
- UseShellExecute = false,
- Arguments = $"{assetUnpackerArgs[0]} {assetUnpackerArgs[1]}",
- RedirectStandardOutput = true,
- CreateNoWindow = true
- };
- _assetUnpackerProcess.Start();
- string output = _assetUnpackerProcess.StandardOutput.ReadToEnd();
- _assetUnpackerProcess.WaitForExit();
- return output;
- }
Advertisement
Add Comment
Please, Sign In to add comment