1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2025-02-04 07:37:48 -05:00

adding LogLevel to game config component

This commit is contained in:
gravestench 2020-11-14 09:50:47 -08:00
parent 5727aa2f58
commit e2bd1d8c71

View File

@ -1,6 +1,7 @@
package d2components package d2components
import ( import (
"github.com/OpenDiablo2/OpenDiablo2/d2common/d2util"
"os/user" "os/user"
"path" "path"
"runtime" "runtime"
@ -26,6 +27,7 @@ type GameConfigComponent struct {
RunInBackground bool RunInBackground bool
VsyncEnabled bool VsyncEnabled bool
Backend string Backend string
LogLevel d2util.LogLevel
} }
// ID returns a unique identifier for the component type // ID returns a unique identifier for the component type
@ -140,6 +142,7 @@ func defaultConfig() *GameConfigComponent {
"d2video.mpq", "d2video.mpq",
"d2speech.mpq", "d2speech.mpq",
}, },
LogLevel: d2util.LogLevelDefault,
} }
switch runtime.GOOS { switch runtime.GOOS {