mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Merge branch 'master' of https://github.com/goatcorp/Dalamud
This commit is contained in:
commit
5d1dd6bb42
1 changed files with 3 additions and 3 deletions
|
|
@ -134,12 +134,12 @@ namespace Dalamud.Plugin
|
||||||
ZipFile.ExtractToDirectory(path, outputDir.FullName);
|
ZipFile.ExtractToDirectory(path, outputDir.FullName);
|
||||||
|
|
||||||
if (wasDisabled || !enableAfterInstall) {
|
if (wasDisabled || !enableAfterInstall) {
|
||||||
disabledFile.Create();
|
disabledFile.Create().Close();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (doTestingDownload) {
|
if (doTestingDownload) {
|
||||||
testingFile.Create();
|
testingFile.Create().Close();
|
||||||
} else {
|
} else {
|
||||||
if (testingFile.Exists)
|
if (testingFile.Exists)
|
||||||
testingFile.Delete();
|
testingFile.Delete();
|
||||||
|
|
@ -246,7 +246,7 @@ namespace Dalamud.Plugin
|
||||||
var disabledFile =
|
var disabledFile =
|
||||||
new FileInfo(Path.Combine(sortedVersion.FullName, ".disabled"));
|
new FileInfo(Path.Combine(sortedVersion.FullName, ".disabled"));
|
||||||
if (!disabledFile.Exists)
|
if (!disabledFile.Exists)
|
||||||
disabledFile.Create();
|
disabledFile.Create().Close();
|
||||||
}
|
}
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
Log.Error(ex, "Plugin disable old versions failed");
|
Log.Error(ex, "Plugin disable old versions failed");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue