public static void UpdateSystem()
        {
            IsRunning = true;
            Log.Instance.DoLog("Running elobuddy system updater.");

            var updateWindow = new UpdateWindow();

            updateWindow.BeginUpdate(
                new UpdateWindow.UpdateWindowDelegate[]
            {
                LoaderUpdateRoutines.InitializeUpdateRoutine, LoaderUpdateRoutines.LoaderUpdateRoutine, LoaderUpdateRoutines.SystemFilesUpdateRoutine, LoaderUpdateRoutines.PatchFilesUpdateRoutine,
                LoaderUpdateRoutines.InstallFilesRoutine
            }, null);

            object json;

            updateWindow.Args.TryGetValue("updateDataJson", out json);
            LatestUpdateJson = (json ?? string.Empty).ToString();

            updateWindow.Args.TryGetValue("coreJson", out json);
            LatestCoreJson = (json ?? string.Empty).ToString();

            Log.Instance.DoLog("Elobuddy system updater has finished updating.");
            IsRunning = false;

            Events.RaiseOnSystemUpdateFinished(EventArgs.Empty);
        }