From c797b76ab632eb504e9e76821601f45fdc5eb12f Mon Sep 17 00:00:00 2001 From: giongto35 Date: Sun, 5 May 2019 23:25:27 +0800 Subject: [PATCH] Remove game in local check in director --- emulator/director.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/emulator/director.go b/emulator/director.go index 3ca6bd9e..0d3db046 100644 --- a/emulator/director.go +++ b/emulator/director.go @@ -3,7 +3,6 @@ package emulator import ( "image" "log" - "os" "time" "github.com/giongto35/cloud-game/emulator/nes" @@ -112,12 +111,6 @@ func (d *Director) PlayGame(path string) { d.SetView(NewGameView(console, path, hash, d.imageChannel, d.audioChannel, d.inputChannel)) } -func (d *Director) IsGameOnLocal(path string, roomID string) bool { - hash, _ := hashFile(path, roomID) - _, err := os.Open(savePath(hash)) - return err != nil -} - // SaveGame creates save events and doing extra step for load func (d *Director) SaveGame(saveExtraFunc func() error) error { if d.hash != "" {