feat: new VEH experience

This commit is contained in:
goat 2022-07-23 20:25:05 +02:00
parent 379c52f5d4
commit 8bc4d362ad
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B
10 changed files with 269 additions and 61 deletions

View file

@ -69,6 +69,17 @@ internal partial class PluginManager : IDisposable, IServiceType
this.devPluginDirectory.Create();
this.SafeMode = EnvironmentConfiguration.DalamudNoPlugins || this.configuration.PluginSafeMode || this.startInfo.NoLoadPlugins;
try
{
var appdata = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
this.SafeMode = this.SafeMode || File.Exists(Path.Combine(appdata, "XIVLauncher", ".dalamud_safemode"));
}
catch (Exception ex)
{
Log.Error(ex, "Couldn't check safe mode file");
}
if (this.SafeMode)
{
this.configuration.PluginSafeMode = false;