diff --git a/Assets/Plugins/StandaloneFileBrowser/IStandaloneFileBrowser.cs.meta b/Assets/Plugins/StandaloneFileBrowser/IStandaloneFileBrowser.cs.meta index 297c5e8d..81887f6e 100644 --- a/Assets/Plugins/StandaloneFileBrowser/IStandaloneFileBrowser.cs.meta +++ b/Assets/Plugins/StandaloneFileBrowser/IStandaloneFileBrowser.cs.meta @@ -1,8 +1,7 @@ fileFormatVersion: 2 -guid: 7609f7b6787a54496aa41a3053fcc76a -timeCreated: 1483902788 -licenseType: Pro +guid: 8a8e6577c9e32f04c85e89a8f43e92fa MonoImporter: + externalObjects: {} serializedVersion: 2 defaultReferences: [] executionOrder: 0 diff --git a/Assets/Plugins/StandaloneFileBrowser/Plugins.meta b/Assets/Plugins/StandaloneFileBrowser/Plugins.meta index 365e9b2e..ae08fd38 100644 --- a/Assets/Plugins/StandaloneFileBrowser/Plugins.meta +++ b/Assets/Plugins/StandaloneFileBrowser/Plugins.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: ddc4e7b83981f244ba9a26b88c18cb67 +guid: cb2d899d659d1184bb966272a336be62 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Assets/Plugins/StandaloneFileBrowser/Plugins/Linux/x86_64/libStandaloneFileBrowser.so.meta b/Assets/Plugins/StandaloneFileBrowser/Plugins/Linux/x86_64/libStandaloneFileBrowser.so.meta index f9256120..eec8c190 100644 --- a/Assets/Plugins/StandaloneFileBrowser/Plugins/Linux/x86_64/libStandaloneFileBrowser.so.meta +++ b/Assets/Plugins/StandaloneFileBrowser/Plugins/Linux/x86_64/libStandaloneFileBrowser.so.meta @@ -1,17 +1,18 @@ fileFormatVersion: 2 guid: b8c465928f1784a3fac8dc3766f7201c -timeCreated: 1538230728 -licenseType: Free PluginImporter: externalObjects: {} serializedVersion: 2 iconMap: {} executionOrder: {} + defineConstraints: [] isPreloaded: 0 isOverridable: 0 + isExplicitlyReferenced: 0 + validateReferences: 1 platformData: - first: - '': Any + : Any second: enabled: 0 settings: @@ -77,7 +78,7 @@ PluginImporter: second: enabled: 1 settings: - CPU: x86_64 + CPU: AnyCPU - first: Standalone: LinuxUniversal second: diff --git a/Assets/Plugins/StandaloneFileBrowser/Plugins/Ookii.Dialogs.WinForms.dll b/Assets/Plugins/StandaloneFileBrowser/Plugins/Ookii.Dialogs.WinForms.dll new file mode 100644 index 00000000..25c87458 Binary files /dev/null and b/Assets/Plugins/StandaloneFileBrowser/Plugins/Ookii.Dialogs.WinForms.dll differ diff --git a/Assets/Plugins/StandaloneFileBrowser/Plugins/Ookii.Dialogs.WinForms.dll.meta b/Assets/Plugins/StandaloneFileBrowser/Plugins/Ookii.Dialogs.WinForms.dll.meta new file mode 100644 index 00000000..35e68ec3 --- /dev/null +++ b/Assets/Plugins/StandaloneFileBrowser/Plugins/Ookii.Dialogs.WinForms.dll.meta @@ -0,0 +1,92 @@ +fileFormatVersion: 2 +guid: 74fab40b825d7954582ce1cf75b15184 +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + isPreloaded: 0 + isOverridable: 0 + platformData: + - first: + '': Any + second: + enabled: 0 + settings: + Exclude Editor: 0 + Exclude Linux: 1 + Exclude Linux64: 1 + Exclude LinuxUniversal: 1 + Exclude OSXUniversal: 1 + Exclude Win: 0 + Exclude Win64: 0 + - first: + Any: + second: + enabled: 0 + settings: {} + - first: + Editor: Editor + second: + enabled: 1 + settings: + CPU: AnyCPU + DefaultValueInitialized: true + OS: AnyOS + - first: + Facebook: Win + second: + enabled: 0 + settings: + CPU: AnyCPU + - first: + Facebook: Win64 + second: + enabled: 0 + settings: + CPU: AnyCPU + - first: + Standalone: Linux + second: + enabled: 0 + settings: + CPU: None + - first: + Standalone: Linux64 + second: + enabled: 0 + settings: + CPU: None + - first: + Standalone: LinuxUniversal + second: + enabled: 0 + settings: + CPU: None + - first: + Standalone: OSXUniversal + second: + enabled: 0 + settings: + CPU: None + - first: + Standalone: Win + second: + enabled: 1 + settings: + CPU: AnyCPU + - first: + Standalone: Win64 + second: + enabled: 1 + settings: + CPU: AnyCPU + - first: + Windows Store Apps: WindowsStoreApps + second: + enabled: 0 + settings: + CPU: AnyCPU + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/StandaloneFileBrowser/Plugins/Ookii.Dialogs.dll b/Assets/Plugins/StandaloneFileBrowser/Plugins/Ookii.Dialogs.dll deleted file mode 100644 index 1b2fc639..00000000 Binary files a/Assets/Plugins/StandaloneFileBrowser/Plugins/Ookii.Dialogs.dll and /dev/null differ diff --git a/Assets/Plugins/StandaloneFileBrowser/Plugins/Ookii.Dialogs.dll.meta b/Assets/Plugins/StandaloneFileBrowser/Plugins/Ookii.Dialogs.dll.meta index 13e560df..ae7d573a 100644 --- a/Assets/Plugins/StandaloneFileBrowser/Plugins/Ookii.Dialogs.dll.meta +++ b/Assets/Plugins/StandaloneFileBrowser/Plugins/Ookii.Dialogs.dll.meta @@ -1,145 +1,130 @@ fileFormatVersion: 2 guid: e60958662eed5413d86143a0a69b731e -timeCreated: 1491979494 -licenseType: Pro PluginImporter: + externalObjects: {} serializedVersion: 2 iconMap: {} executionOrder: {} + defineConstraints: [] isPreloaded: 0 isOverridable: 0 + isExplicitlyReferenced: 0 + validateReferences: 1 platformData: - data: - first: - '': Any - second: - enabled: 0 - settings: - Exclude Android: 1 - Exclude Editor: 0 - Exclude Linux: 1 - Exclude Linux64: 1 - Exclude LinuxUniversal: 1 - Exclude OSXIntel: 1 - Exclude OSXIntel64: 1 - Exclude OSXUniversal: 1 - Exclude WebGL: 1 - Exclude Win: 0 - Exclude Win64: 0 - Exclude iOS: 1 - data: - first: - '': Editor - second: - enabled: 0 - settings: - CPU: AnyCPU - OS: AnyOS - data: - first: - Android: Android - second: - enabled: 0 - settings: - CPU: ARMv7 - data: - first: - Any: - second: - enabled: 0 - settings: {} - data: - first: - Editor: Editor - second: - enabled: 1 - settings: - DefaultValueInitialized: true - data: - first: - Facebook: Win - second: - enabled: 0 - settings: - CPU: AnyCPU - data: - first: - Facebook: Win64 - second: - enabled: 0 - settings: - CPU: AnyCPU - data: - first: - Standalone: Linux - second: - enabled: 0 - settings: - CPU: None - data: - first: - Standalone: Linux64 - second: - enabled: 0 - settings: - CPU: None - data: - first: - Standalone: LinuxUniversal - second: - enabled: 0 - settings: - CPU: None - data: - first: - Standalone: OSXIntel - second: - enabled: 0 - settings: - CPU: None - data: - first: - Standalone: OSXIntel64 - second: - enabled: 0 - settings: - CPU: None - data: - first: - Standalone: OSXUniversal - second: - enabled: 0 - settings: - CPU: None - data: - first: - Standalone: Win - second: - enabled: 1 - settings: - CPU: AnyCPU - data: - first: - Standalone: Win64 - second: - enabled: 1 - settings: - CPU: AnyCPU - data: - first: - Windows Store Apps: WindowsStoreApps - second: - enabled: 0 - settings: - CPU: AnyCPU - data: - first: - iPhone: iOS - second: - enabled: 0 - settings: - CompileFlags: - FrameworkDependencies: + - first: + : Any + second: + enabled: 0 + settings: + Exclude Android: 1 + Exclude Editor: 0 + Exclude Linux: 1 + Exclude Linux64: 1 + Exclude LinuxUniversal: 1 + Exclude OSXIntel: 1 + Exclude OSXIntel64: 1 + Exclude OSXUniversal: 1 + Exclude WebGL: 1 + Exclude Win: 0 + Exclude Win64: 0 + Exclude iOS: 1 + - first: + : Editor + second: + enabled: 0 + settings: + CPU: AnyCPU + OS: AnyOS + - first: + Android: Android + second: + enabled: 0 + settings: + CPU: ARMv7 + - first: + Any: + second: + enabled: 0 + settings: {} + - first: + Editor: Editor + second: + enabled: 1 + settings: + DefaultValueInitialized: true + - first: + Facebook: Win + second: + enabled: 0 + settings: + CPU: AnyCPU + - first: + Facebook: Win64 + second: + enabled: 0 + settings: + CPU: AnyCPU + - first: + Standalone: Linux + second: + enabled: 0 + settings: + CPU: None + - first: + Standalone: Linux64 + second: + enabled: 0 + settings: + CPU: None + - first: + Standalone: LinuxUniversal + second: + enabled: 0 + settings: + CPU: None + - first: + Standalone: OSXIntel + second: + enabled: 0 + settings: + CPU: None + - first: + Standalone: OSXIntel64 + second: + enabled: 0 + settings: + CPU: None + - first: + Standalone: OSXUniversal + second: + enabled: 0 + settings: + CPU: None + - first: + Standalone: Win + second: + enabled: 1 + settings: + CPU: AnyCPU + - first: + Standalone: Win64 + second: + enabled: 1 + settings: + CPU: AnyCPU + - first: + Windows Store Apps: WindowsStoreApps + second: + enabled: 0 + settings: + CPU: AnyCPU + - first: + iPhone: iOS + second: + enabled: 0 + settings: + CompileFlags: + FrameworkDependencies: userData: assetBundleName: assetBundleVariant: diff --git a/Assets/Plugins/StandaloneFileBrowser/Plugins/StandaloneFileBrowser.jslib.meta b/Assets/Plugins/StandaloneFileBrowser/Plugins/StandaloneFileBrowser.jslib.meta index 9ba582be..66ad8722 100644 --- a/Assets/Plugins/StandaloneFileBrowser/Plugins/StandaloneFileBrowser.jslib.meta +++ b/Assets/Plugins/StandaloneFileBrowser/Plugins/StandaloneFileBrowser.jslib.meta @@ -5,11 +5,14 @@ PluginImporter: serializedVersion: 2 iconMap: {} executionOrder: {} + defineConstraints: [] isPreloaded: 0 isOverridable: 0 + isExplicitlyReferenced: 0 + validateReferences: 1 platformData: - first: - '': Any + : Any second: enabled: 0 settings: @@ -61,7 +64,7 @@ PluginImporter: second: enabled: 0 settings: - CPU: x86_64 + CPU: AnyCPU - first: Standalone: LinuxUniversal second: diff --git a/Assets/Plugins/StandaloneFileBrowser/Plugins/System.Windows.Forms.dll.meta b/Assets/Plugins/StandaloneFileBrowser/Plugins/System.Windows.Forms.dll.meta index f757441d..5416966b 100644 --- a/Assets/Plugins/StandaloneFileBrowser/Plugins/System.Windows.Forms.dll.meta +++ b/Assets/Plugins/StandaloneFileBrowser/Plugins/System.Windows.Forms.dll.meta @@ -1,145 +1,130 @@ fileFormatVersion: 2 guid: 7d459a96865cc4aaab657012c6dc4833 -timeCreated: 1491979494 -licenseType: Pro PluginImporter: + externalObjects: {} serializedVersion: 2 iconMap: {} executionOrder: {} + defineConstraints: [] isPreloaded: 0 isOverridable: 0 + isExplicitlyReferenced: 0 + validateReferences: 1 platformData: - data: - first: - '': Any - second: - enabled: 0 - settings: - Exclude Android: 1 - Exclude Editor: 0 - Exclude Linux: 1 - Exclude Linux64: 1 - Exclude LinuxUniversal: 1 - Exclude OSXIntel: 1 - Exclude OSXIntel64: 1 - Exclude OSXUniversal: 1 - Exclude WebGL: 1 - Exclude Win: 0 - Exclude Win64: 0 - Exclude iOS: 1 - data: - first: - '': Editor - second: - enabled: 0 - settings: - CPU: AnyCPU - OS: AnyOS - data: - first: - Android: Android - second: - enabled: 0 - settings: - CPU: ARMv7 - data: - first: - Any: - second: - enabled: 0 - settings: {} - data: - first: - Editor: Editor - second: - enabled: 1 - settings: - DefaultValueInitialized: true - data: - first: - Facebook: Win - second: - enabled: 0 - settings: - CPU: AnyCPU - data: - first: - Facebook: Win64 - second: - enabled: 0 - settings: - CPU: AnyCPU - data: - first: - Standalone: Linux - second: - enabled: 0 - settings: - CPU: None - data: - first: - Standalone: Linux64 - second: - enabled: 0 - settings: - CPU: None - data: - first: - Standalone: LinuxUniversal - second: - enabled: 0 - settings: - CPU: None - data: - first: - Standalone: OSXIntel - second: - enabled: 0 - settings: - CPU: None - data: - first: - Standalone: OSXIntel64 - second: - enabled: 0 - settings: - CPU: None - data: - first: - Standalone: OSXUniversal - second: - enabled: 0 - settings: - CPU: None - data: - first: - Standalone: Win - second: - enabled: 1 - settings: - CPU: AnyCPU - data: - first: - Standalone: Win64 - second: - enabled: 1 - settings: - CPU: AnyCPU - data: - first: - Windows Store Apps: WindowsStoreApps - second: - enabled: 0 - settings: - CPU: AnyCPU - data: - first: - iPhone: iOS - second: - enabled: 0 - settings: - CompileFlags: - FrameworkDependencies: + - first: + : Any + second: + enabled: 0 + settings: + Exclude Android: 1 + Exclude Editor: 0 + Exclude Linux: 1 + Exclude Linux64: 1 + Exclude LinuxUniversal: 1 + Exclude OSXIntel: 1 + Exclude OSXIntel64: 1 + Exclude OSXUniversal: 1 + Exclude WebGL: 1 + Exclude Win: 0 + Exclude Win64: 0 + Exclude iOS: 1 + - first: + : Editor + second: + enabled: 0 + settings: + CPU: AnyCPU + OS: AnyOS + - first: + Android: Android + second: + enabled: 0 + settings: + CPU: ARMv7 + - first: + Any: + second: + enabled: 0 + settings: {} + - first: + Editor: Editor + second: + enabled: 1 + settings: + DefaultValueInitialized: true + - first: + Facebook: Win + second: + enabled: 0 + settings: + CPU: AnyCPU + - first: + Facebook: Win64 + second: + enabled: 0 + settings: + CPU: AnyCPU + - first: + Standalone: Linux + second: + enabled: 0 + settings: + CPU: None + - first: + Standalone: Linux64 + second: + enabled: 0 + settings: + CPU: None + - first: + Standalone: LinuxUniversal + second: + enabled: 0 + settings: + CPU: None + - first: + Standalone: OSXIntel + second: + enabled: 0 + settings: + CPU: None + - first: + Standalone: OSXIntel64 + second: + enabled: 0 + settings: + CPU: None + - first: + Standalone: OSXUniversal + second: + enabled: 0 + settings: + CPU: None + - first: + Standalone: Win + second: + enabled: 1 + settings: + CPU: AnyCPU + - first: + Standalone: Win64 + second: + enabled: 1 + settings: + CPU: AnyCPU + - first: + Windows Store Apps: WindowsStoreApps + second: + enabled: 0 + settings: + CPU: AnyCPU + - first: + iPhone: iOS + second: + enabled: 0 + settings: + CompileFlags: + FrameworkDependencies: userData: assetBundleName: assetBundleVariant: diff --git a/Assets/Plugins/StandaloneFileBrowser/SFB.Runtime.asmdef b/Assets/Plugins/StandaloneFileBrowser/SFB.Runtime.asmdef new file mode 100644 index 00000000..cd04f857 --- /dev/null +++ b/Assets/Plugins/StandaloneFileBrowser/SFB.Runtime.asmdef @@ -0,0 +1,14 @@ +{ + "name": "SFB.Runtime", + "rootNamespace": "", + "references": [], + "includePlatforms": [], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [], + "versionDefines": [], + "noEngineReferences": false +} \ No newline at end of file diff --git a/Assets/Plugins/StandaloneFileBrowser/SFB.Runtime.asmdef.meta b/Assets/Plugins/StandaloneFileBrowser/SFB.Runtime.asmdef.meta new file mode 100644 index 00000000..1ac84902 --- /dev/null +++ b/Assets/Plugins/StandaloneFileBrowser/SFB.Runtime.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: ce432116effeafc4083f70bdcfcfaebb +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/StandaloneFileBrowser/StandaloneFileBrowser.cs.meta b/Assets/Plugins/StandaloneFileBrowser/StandaloneFileBrowser.cs.meta index 8ea72581..0d3c90cb 100644 --- a/Assets/Plugins/StandaloneFileBrowser/StandaloneFileBrowser.cs.meta +++ b/Assets/Plugins/StandaloneFileBrowser/StandaloneFileBrowser.cs.meta @@ -1,8 +1,7 @@ fileFormatVersion: 2 -guid: 3c708be74128e4ced9b79eaaf80e8443 -timeCreated: 1483902788 -licenseType: Pro +guid: 6ac7447aa2a17e641bf4918306b8234e MonoImporter: + externalObjects: {} serializedVersion: 2 defaultReferences: [] executionOrder: 0 diff --git a/Assets/Plugins/StandaloneFileBrowser/StandaloneFileBrowserEditor.cs.meta b/Assets/Plugins/StandaloneFileBrowser/StandaloneFileBrowserEditor.cs.meta index c0c3b52c..8f03e5b5 100644 --- a/Assets/Plugins/StandaloneFileBrowser/StandaloneFileBrowserEditor.cs.meta +++ b/Assets/Plugins/StandaloneFileBrowser/StandaloneFileBrowserEditor.cs.meta @@ -1,8 +1,7 @@ fileFormatVersion: 2 -guid: 2650af8de2cda46b99b1bc7cf5d30ca5 -timeCreated: 1483902788 -licenseType: Pro +guid: 105f81a0406213b48a08543579184a2d MonoImporter: + externalObjects: {} serializedVersion: 2 defaultReferences: [] executionOrder: 0 diff --git a/Assets/Plugins/StandaloneFileBrowser/StandaloneFileBrowserLinux.cs.meta b/Assets/Plugins/StandaloneFileBrowser/StandaloneFileBrowserLinux.cs.meta index e8bfba16..64e4baa0 100644 --- a/Assets/Plugins/StandaloneFileBrowser/StandaloneFileBrowserLinux.cs.meta +++ b/Assets/Plugins/StandaloneFileBrowser/StandaloneFileBrowserLinux.cs.meta @@ -1,3 +1,11 @@ -fileFormatVersion: 2 -guid: 5d3a668018554b8a89c3fe12de72b60c -timeCreated: 1538067919 \ No newline at end of file +fileFormatVersion: 2 +guid: 14ff0babaa1ef21468471738e2650b65 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins/StandaloneFileBrowser/StandaloneFileBrowserMac.cs.meta b/Assets/Plugins/StandaloneFileBrowser/StandaloneFileBrowserMac.cs.meta index 4a2ffc35..741c821c 100644 --- a/Assets/Plugins/StandaloneFileBrowser/StandaloneFileBrowserMac.cs.meta +++ b/Assets/Plugins/StandaloneFileBrowser/StandaloneFileBrowserMac.cs.meta @@ -1,8 +1,7 @@ fileFormatVersion: 2 -guid: bcb49ddb0ed5644fda9c3b055cafa27a -timeCreated: 1483902788 -licenseType: Pro +guid: b499e1a326c0d0d4d92d6b2f2378361d MonoImporter: + externalObjects: {} serializedVersion: 2 defaultReferences: [] executionOrder: 0 diff --git a/Assets/Plugins/StandaloneFileBrowser/StandaloneFileBrowserWindows.cs b/Assets/Plugins/StandaloneFileBrowser/StandaloneFileBrowserWindows.cs index 2bdb8c21..636c3e00 100644 --- a/Assets/Plugins/StandaloneFileBrowser/StandaloneFileBrowserWindows.cs +++ b/Assets/Plugins/StandaloneFileBrowser/StandaloneFileBrowserWindows.cs @@ -4,7 +4,7 @@ using System; using System.IO; using System.Windows.Forms; using System.Runtime.InteropServices; -using Ookii.Dialogs; +using Ookii.Dialogs.WinForms; namespace SFB { // For fullscreen support @@ -24,6 +24,8 @@ namespace SFB { public string[] OpenFilePanel(string title, string directory, ExtensionFilter[] extensions, bool multiselect) { var fd = new VistaOpenFileDialog(); fd.Title = title; + fd.InitialDirectory = directory; + fd.Multiselect = multiselect; if (extensions != null) { fd.Filter = GetFilterFromFileExtensionList(extensions); fd.FilterIndex = 1; @@ -31,10 +33,6 @@ namespace SFB { else { fd.Filter = string.Empty; } - fd.Multiselect = multiselect; - if (!string.IsNullOrEmpty(directory)) { - fd.FileName = GetDirectoryPath(directory); - } var res = fd.ShowDialog(new WindowWrapper(GetActiveWindow())); var filenames = res == DialogResult.OK ? fd.FileNames : new string[0]; fd.Dispose(); @@ -48,11 +46,10 @@ namespace SFB { public string[] OpenFolderPanel(string title, string directory, bool multiselect) { var fd = new VistaFolderBrowserDialog(); fd.Description = title; - if (!string.IsNullOrEmpty(directory)) { - fd.SelectedPath = GetDirectoryPath(directory); - } + fd.RootFolder = Environment.SpecialFolder.MyComputer; + fd.SelectedPath = directory; var res = fd.ShowDialog(new WindowWrapper(GetActiveWindow())); - var filenames = res == DialogResult.OK ? new []{ fd.SelectedPath } : new string[0]; + var filenames = res == DialogResult.OK ? new[] { fd.SelectedPath } : new string[0]; fd.Dispose(); return filenames; } @@ -64,18 +61,8 @@ namespace SFB { public string SaveFilePanel(string title, string directory, string defaultName, ExtensionFilter[] extensions) { var fd = new VistaSaveFileDialog(); fd.Title = title; - - var finalFilename = ""; - - if (!string.IsNullOrEmpty(directory)) { - finalFilename = GetDirectoryPath(directory); - } - - if (!string.IsNullOrEmpty(defaultName)) { - finalFilename += defaultName; - } - - fd.FileName = finalFilename; + fd.InitialDirectory = directory; + fd.FileName = defaultName; if (extensions != null) { fd.Filter = GetFilterFromFileExtensionList(extensions); fd.FilterIndex = 1; @@ -100,9 +87,10 @@ namespace SFB { // .NET Framework FileDialog Filter format // https://msdn.microsoft.com/en-us/library/microsoft.win32.filedialog.filter private static string GetFilterFromFileExtensionList(ExtensionFilter[] extensions) { + if (extensions == null) return ""; var filterString = ""; foreach (var filter in extensions) { - filterString += filter.Name + "("; + filterString += filter.Name + " ("; foreach (var ext in filter.Extensions) { filterString += "*." + ext + ","; @@ -120,18 +108,7 @@ namespace SFB { filterString = filterString.Remove(filterString.Length - 1); return filterString; } - - private static string GetDirectoryPath(string directory) { - var directoryPath = Path.GetFullPath(directory); - if (!directoryPath.EndsWith("\\")) { - directoryPath += "\\"; - } - if (Path.GetPathRoot(directoryPath) == directoryPath) { - return directory; - } - return Path.GetDirectoryName(directoryPath) + Path.DirectorySeparatorChar; - } } } -#endif \ No newline at end of file +#endif diff --git a/Assets/Plugins/StandaloneFileBrowser/StandaloneFileBrowserWindows.cs.meta b/Assets/Plugins/StandaloneFileBrowser/StandaloneFileBrowserWindows.cs.meta index 00f56175..1e257ba5 100644 --- a/Assets/Plugins/StandaloneFileBrowser/StandaloneFileBrowserWindows.cs.meta +++ b/Assets/Plugins/StandaloneFileBrowser/StandaloneFileBrowserWindows.cs.meta @@ -1,8 +1,7 @@ fileFormatVersion: 2 -guid: 194e247414a78461d83ae606c1b96917 -timeCreated: 1483902788 -licenseType: Pro +guid: b0b56749f8dd99840b6a2d81dc5a336d MonoImporter: + externalObjects: {} serializedVersion: 2 defaultReferences: [] executionOrder: 0