Fix: register D2R resolution profiles with engine, fix null API responses

This commit is contained in:
Hoid 2026-02-14 10:46:40 +00:00
parent 67f8ec1fe8
commit 4ebed5e3ab
3 changed files with 20 additions and 2 deletions

View file

@ -78,3 +78,9 @@ func (p *Plugin) DefaultLootFilter() plugin.LootFilter {
func (p *Plugin) SupportedResolutions() []image.Point {
return p.resolutionRegistry.SupportedResolutions("d2r")
}
// RegisterResolutionProfiles registers D2R profiles with an external registry.
// Called by the engine before Init().
func (p *Plugin) RegisterResolutionProfiles(reg *resolution.Registry) error {
return RegisterProfiles(reg)
}