leighmacdonald / bd

MIT License
20 stars 4 forks source link

Fix game binary name on linux #43

Closed Kenajcrap closed 1 year ago

Kenajcrap commented 1 year ago

The game binary on linux is named hl2_linux.

Without this, running the tool on linux throws

DEBUG   bd  detector/detector.go:497    Failed to query state   {"error": "Invalid ready state", "errorVerbose": "Invalid ready state\ngithub.com/leighmacdonald/bd/internal/detector.init
    /home/rafael/Dev/bd/internal/detector/detector.go:36
runtime.doInit
    /usr/lib/go/src/runtime/proc.go:6525
runtime.doInit
    /usr/lib/go/src/runtime/proc.go:6502
runtime.main
    /usr/lib/go/src/runtime/proc.go:233
runtime.goexit
    /usr/lib/go/src/runtime/asm_amd64.s:1598"}

This is because it cannot find the game process

Thank you for all of your work!