mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2025-02-03 23:26:41 -05:00
adding LogLevel to game config component
This commit is contained in:
parent
5727aa2f58
commit
e2bd1d8c71
@ -1,6 +1,7 @@
|
||||
package d2components
|
||||
|
||||
import (
|
||||
"github.com/OpenDiablo2/OpenDiablo2/d2common/d2util"
|
||||
"os/user"
|
||||
"path"
|
||||
"runtime"
|
||||
@ -26,6 +27,7 @@ type GameConfigComponent struct {
|
||||
RunInBackground bool
|
||||
VsyncEnabled bool
|
||||
Backend string
|
||||
LogLevel d2util.LogLevel
|
||||
}
|
||||
|
||||
// ID returns a unique identifier for the component type
|
||||
@ -140,6 +142,7 @@ func defaultConfig() *GameConfigComponent {
|
||||
"d2video.mpq",
|
||||
"d2speech.mpq",
|
||||
},
|
||||
LogLevel: d2util.LogLevelDefault,
|
||||
}
|
||||
|
||||
switch runtime.GOOS {
|
||||
|
Loading…
Reference in New Issue
Block a user