summaryrefslogtreecommitdiff
path: root/src/rhlibrary/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/rhlibrary/main.go')
-rw-r--r--src/rhlibrary/main.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/rhlibrary/main.go b/src/rhlibrary/main.go
index 45c443f..1676c18 100644
--- a/src/rhlibrary/main.go
+++ b/src/rhlibrary/main.go
@@ -84,16 +84,13 @@ func main() {
}
defer db.Cleanup()
- p, err := player.NewPlayer("/home/equinox/helsinki/rivenhell/contrib/rhlibrary/snd")
+ p, err := player.NewPlayer("/home/equinox/helsinki/rivenhell/contrib/rhlibrary/snd", rhl, rhdl)
if err != nil {
rhl.Println("Error initializing Player:", err)
return
}
- pi := p.GetInterface()
- pi.Load(1, 1)
- pi.Play()
- mw, err := NewMainWindow(640, 360)
+ mw, err := NewMainWindow(p.GetInterface(), 640, 360)
if err != nil {
rhl.Println("Error initializing Main Window:", err)
return