From c48b1b93d5d1584c46ab8434e4b5ea764c283e9b Mon Sep 17 00:00:00 2001 From: MountainFlash <65584814+MinshuG@users.noreply.github.com> Date: Sun, 8 Nov 2020 15:47:32 +0530 Subject: [PATCH] .csv and OGG10025600-1-1-1-1-1 --- FModel/Utils/Assets.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/FModel/Utils/Assets.cs b/FModel/Utils/Assets.cs index 6a15dc6d..1d1391b4 100644 --- a/FModel/Utils/Assets.cs +++ b/FModel/Utils/Assets.cs @@ -83,6 +83,14 @@ namespace FModel.Utils case ".uproject": case ".uplugin": case ".upluginmanifest": + case ".csv": + { + using var asset = GetMemoryStream(selected.ReaderEntry.ContainerName, mount + selected.ReaderEntry.GetPathWithoutExtension()); + asset.Position = 0; + using var reader = new StreamReader(asset); + AvalonEditVm.avalonEditViewModel.Set(reader.ReadToEnd(), mount + selected.ReaderEntry.Name, AvalonEditVm.IniHighlighter); + break; + } case ".json": { IHighlightingDefinition syntax = ext switch @@ -249,7 +257,7 @@ namespace FModel.Utils // Sound var s = p.GetExport(); - if (s != null && (s.AudioFormat.String.Equals("OGG") || s.AudioFormat.String.Equals("OGG10000-1-1-1-1-1"))) + if (s != null && (s.AudioFormat.String.Equals("OGG") || s.AudioFormat.String.Equals("OGG10000-1-1-1-1-1") || s.AudioFormat.String.Equals("OGG10025600-1-1-1-1-1"))) { string path = Properties.Settings.Default.OutputPath + "\\Sounds\\" + mount + entry.GetPathWithoutExtension() + ".ogg"; Directory.CreateDirectory(Path.GetDirectoryName(path));