From 44fb0c3e7e85bb3e9f0fca7ff30ff97d641c30f4 Mon Sep 17 00:00:00 2001 From: giongto35 Date: Tue, 2 Apr 2019 21:50:27 +0800 Subject: [PATCH] Add super mario --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index e6a71a0a..dddad270 100644 --- a/main.go +++ b/main.go @@ -19,6 +19,7 @@ import ( var webRTC *webrtc.WebRTC var width = 256 var height = 240 +var gameName = "supermariobros.rom" func init() { } @@ -40,7 +41,7 @@ func main() { // start screenshot loop, wait for connection go screenshotLoop(imageChannel) - startGame("games/supermariobros.rom", imageChannel, webRTC.InputChannel) + startGame("games/"+gameName, imageChannel, webRTC.InputChannel) time.Sleep(time.Minute) }