From 84201b346b9360b6c9e3c9b1a101a0218ff34f7d Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Sat, 5 Oct 2024 23:11:38 -0500 Subject: [PATCH] Add opening file proxy for windows. --- Source/Editor/Content/Proxy/FileProxy.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Source/Editor/Content/Proxy/FileProxy.cs b/Source/Editor/Content/Proxy/FileProxy.cs index 4e12ab588..d162e5f35 100644 --- a/Source/Editor/Content/Proxy/FileProxy.cs +++ b/Source/Editor/Content/Proxy/FileProxy.cs @@ -32,6 +32,14 @@ namespace FlaxEditor.Content /// public override EditorWindow Open(Editor editor, ContentItem item) { +#if PLATFORM_WINDOWS + CreateProcessSettings settings = new CreateProcessSettings + { + ShellExecute = true, + FileName = item.Path + }; + Platform.CreateProcess(ref settings); +#endif return null; }