mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Implemented ExtensionManager
This commit is contained in:
parent
73e9408ed2
commit
5ffca32581
@ -85,6 +85,21 @@ namespace Wabbajack
|
|||||||
Environment.Exit(1);
|
Environment.Exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var appPath = Assembly.GetExecutingAssembly().Location;
|
||||||
|
var iconPath = Path.Combine(Path.GetDirectoryName(appPath), "wabbajack.ico");
|
||||||
|
if(!File.Exists(iconPath))
|
||||||
|
{
|
||||||
|
using (var s = Utils.GetResourceStream("Wabbajack.UI.Icons.icon-embedded.ico"))
|
||||||
|
using (var fs = new FileStream(iconPath, FileMode.Create))
|
||||||
|
{
|
||||||
|
s.CopyTo(fs);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!ExtensionManager.IsExtensionAssociated() || ExtensionManager.IsAssociationOutdated(iconPath, appPath))
|
||||||
|
{
|
||||||
|
ExtensionManager.AssociateExtension(iconPath, appPath);
|
||||||
|
}
|
||||||
|
|
||||||
Mode = mode;
|
Mode = mode;
|
||||||
|
|
||||||
// Define commands
|
// Define commands
|
||||||
|
Loading…
Reference in New Issue
Block a user