Browse Source

update mac project

Luke 8 years ago
parent
commit
b6b735f0d1

+ 2 - 1
MediaBrowser.Server.Mac/MacAppHost.cs

@@ -3,7 +3,8 @@ using System.Collections.Generic;
 using System.Reflection;
 using Emby.Server.Core;
 using Emby.Server.Core.Data;
-using Emby.Server.Core.FFMpeg;
+using Emby.Server.Implementations;
+using Emby.Server.Implementations.FFMpeg;
 using MediaBrowser.Model.IO;
 using MediaBrowser.Model.Logging;
 using MediaBrowser.Model.System;

+ 2 - 1
MediaBrowser.Server.Mac/Main.cs

@@ -20,6 +20,7 @@ using MonoMac.AppKit;
 using MonoMac.Foundation;
 using MonoMac.ObjCRuntime;
 using Emby.Server.Core;
+using Emby.Server.Implementations;
 using Emby.Common.Implementations.Logging;
 using Emby.Common.Implementations.EnvironmentInfo;
 using Emby.Server.Mac.Native;
@@ -43,7 +44,7 @@ namespace MediaBrowser.Server.Mac
 
             var applicationPath = Assembly.GetEntryAssembly().Location;
 
-			var options = new StartupOptions();
+			var options = new StartupOptions(Environment.GetCommandLineArgs());
 
 			// Allow this to be specified on the command line.
 			var customProgramDataPath = options.GetOption("-programdata");

+ 1 - 1
MediaBrowser.Server.Mac/MenuBarIcon.cs

@@ -4,7 +4,7 @@ using MediaBrowser.Model.Logging;
 using System;
 using MonoMac.Foundation;
 using MonoMac.AppKit;
-using Emby.Server.Core.Browser;
+using Emby.Server.Implementations.Browser;
 
 namespace MediaBrowser.Server.Mac
 {

+ 1 - 1
MediaBrowser.Server.Mac/Native/MonoFileSystem.cs

@@ -6,7 +6,7 @@ namespace Emby.Server.Mac.Native
 {
     public class MonoFileSystem : ManagedFileSystem
     {
-        public MonoFileSystem(ILogger logger, bool supportsAsyncFileStreams, bool enableManagedInvalidFileNameChars) : base(logger, supportsAsyncFileStreams, enableManagedInvalidFileNameChars, false)
+        public MonoFileSystem(ILogger logger, bool supportsAsyncFileStreams, bool enableManagedInvalidFileNameChars) : base(logger, supportsAsyncFileStreams, enableManagedInvalidFileNameChars, true)
         {
         }