Add modular capture backends, resolution profiles, Wayland support
This commit is contained in:
parent
3b363192f2
commit
80ba9b1b90
16 changed files with 2266 additions and 45 deletions
|
|
@ -9,12 +9,16 @@ import (
|
|||
|
||||
// Reader implements plugin.ScreenReader for D2R.
|
||||
type Reader struct {
|
||||
config Config
|
||||
config Config
|
||||
services plugin.EngineServices
|
||||
}
|
||||
|
||||
// NewReader creates a D2R screen reader.
|
||||
func NewReader(config Config) *Reader {
|
||||
return &Reader{config: config}
|
||||
func NewReader(config Config, services plugin.EngineServices) *Reader {
|
||||
return &Reader{
|
||||
config: config,
|
||||
services: services,
|
||||
}
|
||||
}
|
||||
|
||||
// FindItems detects item labels on the ground.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue