Define identifier for portmaster-core.dll and make it mandatory

This commit is contained in:
Daniel 2024-11-28 11:45:29 +01:00
parent df4106fd70
commit ef0995b1f7
2 changed files with 2 additions and 1 deletions

View file

@ -18,7 +18,7 @@ type OSSpecific struct {
// Initialize loads the dll and finds all the needed functions from it. // Initialize loads the dll and finds all the needed functions from it.
func (i *OSIntegration) Initialize() error { func (i *OSIntegration) Initialize() error {
// Find path to the dll. // Find path to the dll.
file, err := updates.GetFile("portmaster-core.dll") file, err := updates.GetPlatformFile("dll/portmaster-core.dll")
if err != nil { if err != nil {
return err return err
} }

View file

@ -52,6 +52,7 @@ func MandatoryUpdates() (identifiers []string) {
identifiers = append( identifiers = append(
identifiers, identifiers,
PlatformIdentifier("core/portmaster-core.exe"), PlatformIdentifier("core/portmaster-core.exe"),
PlatformIdentifier("dll/portmaster-core.dll"),
PlatformIdentifier("kext/portmaster-kext.sys"), PlatformIdentifier("kext/portmaster-kext.sys"),
PlatformIdentifier("kext/portmaster-kext.pdb"), PlatformIdentifier("kext/portmaster-kext.pdb"),
PlatformIdentifier("start/portmaster-start.exe"), PlatformIdentifier("start/portmaster-start.exe"),