OdessaGUIProject.MainModel.Initialize C# (CSharp) Method

Initialize() static private method

static private Initialize ( ) : void
return void
        internal static void Initialize()
        {
            LoggingHelper.WriteSystemInformation();
            Logger.Info("Path to FFmpeg: " + GetPathToFFmpeg());

            try
            {
                int i = NativeOdessaMethods.Initialize(Path.Combine(Path.GetTempPath(), "HighlightHunter-EngineV2.log"));

                if (i == (int)NativeOdessaMethods.OdessaReturnCodes.Authorized)
                    isAuthorized = true;
                else
                    isAuthorized = false;
            }
            catch (Exception ex)
            {
                Logger.Error("Exception calling NativeOdessaMethods.Initialize(): " + ex.Message);
                Debug.Assert(false, "Exception calling NativeOdessaMethods.Initialize() !!");
            }
        }