mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-10 01:22:25 +01:00
Add new .park save format
Co-authored-by: Gymnasiast <Gymnasiast@users.noreply.github.com> Co-authored-by: duncanspumpkin <duncanspumpkin@users.noreply.github.com> Co-authored-by: ZehMatt <Zehmatt@users.noreply.github.com> Co-authored-by: Broxzier <Broxzier@users.noreply.github.com>
This commit is contained in:
@@ -314,13 +314,15 @@
|
||||
foreach (ZipArchiveEntry file in archive.Entries)
|
||||
{
|
||||
string fileName = Path.Combine(destinationDirectory, file.FullName);
|
||||
if (file.Name == String.Empty)
|
||||
string directory = Path.GetDirectoryName(fileName);
|
||||
if (!Directory.Exists(directory))
|
||||
{
|
||||
string directory = Path.GetDirectoryName(fileName);
|
||||
Directory.CreateDirectory(directory);
|
||||
continue;
|
||||
}
|
||||
file.ExtractToFile(fileName, true);
|
||||
if (file.Name != String.Empty)
|
||||
{
|
||||
file.ExtractToFile(fileName, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
]]>
|
||||
|
||||
Reference in New Issue
Block a user