mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
fix: close ".disabled" file immediately
This commit is contained in:
parent
117cc3ef44
commit
7463937afe
1 changed files with 5 additions and 1 deletions
|
|
@ -49,7 +49,11 @@ namespace Dalamud.Plugin
|
|||
.First(x => x.Definition.InternalName == definition.InternalName);
|
||||
|
||||
var outputDir = new DirectoryInfo(Path.Combine(this.pluginDirectory, definition.InternalName, definition.AssemblyVersion));
|
||||
File.Create(Path.Combine(outputDir.FullName, ".disabled"));
|
||||
|
||||
// Need to do it with Open so the file handle gets closed immediately
|
||||
// TODO: Don't use the ".disabled" crap, do it in a config
|
||||
var disabledFile = File.Open(Path.Combine(outputDir.FullName, ".disabled"), FileMode.Create);
|
||||
disabledFile.Close();
|
||||
|
||||
thisPlugin.Plugin.Dispose();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue