feat: set PluginSafeMode = true if needed

This commit is contained in:
goat 2021-08-21 21:49:24 +02:00
parent b05d362353
commit c864cae087
No known key found for this signature in database
GPG key ID: F18F057873895461
2 changed files with 4 additions and 2 deletions

View file

@ -212,7 +212,9 @@ namespace Dalamud
if (result == (int)User32.MessageBoxResult.IDYES)
{
Log.Information("User chose to disable plugins on next launch...");
// TODO When services are in
var config = Service<DalamudConfiguration>.Get();
config.PluginSafeMode = true;
config.Save();
}
Environment.Exit(-1);

View file

@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Dalamud.IoC;
using Dalamud.IoC.Internal;
using Dalamud.Plugin;
using ImGuiNET;