mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
chore: clear file-based safe mode in PluginManager
This commit is contained in:
parent
ed122d3931
commit
aa1819edef
1 changed files with 7 additions and 1 deletions
|
|
@ -73,7 +73,13 @@ internal partial class PluginManager : IDisposable, IServiceType
|
|||
try
|
||||
{
|
||||
var appdata = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
|
||||
this.SafeMode = this.SafeMode || File.Exists(Path.Combine(appdata, "XIVLauncher", ".dalamud_safemode"));
|
||||
var safeModeFile = Path.Combine(appdata, "XIVLauncher", ".dalamud_safemode");
|
||||
|
||||
if (File.Exists(safeModeFile))
|
||||
{
|
||||
this.SafeMode = true;
|
||||
File.Delete(safeModeFile);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue