mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Always use process location for file association
This commit is contained in:
parent
022eb135e1
commit
92b657ba82
@ -151,7 +151,10 @@ namespace Wabbajack
|
|||||||
{
|
{
|
||||||
var applicationRegistrationService = _serviceProvider.GetRequiredService<IApplicationRegistrationService>();
|
var applicationRegistrationService = _serviceProvider.GetRequiredService<IApplicationRegistrationService>();
|
||||||
|
|
||||||
var applicationInfo = new ApplicationInfo("Wabbajack", "Wabbajack", "Wabbajack", location);
|
var processLocation = Process.GetCurrentProcess().MainModule?.FileName ??
|
||||||
|
throw new NotSupportedException("Unable to get process information");
|
||||||
|
|
||||||
|
var applicationInfo = new ApplicationInfo("Wabbajack", "Wabbajack", "Wabbajack", processLocation);
|
||||||
applicationInfo.SupportedExtensions.Add("wabbajack");
|
applicationInfo.SupportedExtensions.Add("wabbajack");
|
||||||
applicationRegistrationService.RegisterApplication(applicationInfo);
|
applicationRegistrationService.RegisterApplication(applicationInfo);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user