mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 11:26:27 +00:00
For now, added all Corsair resources to the plugin's project
Added Glaive layout Added K95 US layout
This commit is contained in:
1 parent
05c4bfeb6e
commit
f1b5961f0b
350 files changed
+3838
-20
No files matched your search
@@ -11,5 +11,22 @@ namespace Artemis.Core.Extensions
|
||||
foreach (var file in source.GetFiles())
|
||||
file.CopyTo(Path.Combine(target.FullName, file.Name));
|
||||
}
|
||||
|
||||
public static void RecursiveDelete(this DirectoryInfo baseDir)
|
||||
{
|
||||
if (!baseDir.Exists)
|
||||
return;
|
||||
|
||||
foreach (var dir in baseDir.EnumerateDirectories())
|
||||
RecursiveDelete(dir);
|
||||
var files = baseDir.GetFiles();
|
||||
foreach (var file in files)
|
||||
{
|
||||
file.IsReadOnly = false;
|
||||
file.Delete();
|
||||
}
|
||||
|
||||
baseDir.Delete();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -292,7 +292,7 @@ namespace Artemis.Core.Services
|
||||
|
||||
// Remove the old directory if it exists
|
||||
if (Directory.Exists(pluginDirectory.FullName))
|
||||
Directory.Delete(pluginDirectory.FullName, true);
|
||||
pluginDirectory.RecursiveDelete();
|
||||
Directory.CreateDirectory(pluginDirectory.FullName);
|
||||
|
||||
builtInPluginDirectory.CopyFilesRecursively(pluginDirectory);
|
||||
|
||||
Reference in new issue
Block a user