From 77ac796b3f2fdee3dcc2a301c62d90a17387e49c Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Mon, 22 Jan 2018 23:48:44 +0900 Subject: [PATCH] examples/2048: Use ebitenutil.JoinStringsIntoFilePath --- examples/2048/2048/tile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/2048/2048/tile.go b/examples/2048/2048/tile.go index 71b0e420d..0ade83bac 100644 --- a/examples/2048/2048/tile.go +++ b/examples/2048/2048/tile.go @@ -40,7 +40,7 @@ var ( ) func init() { - f, err := ebitenutil.OpenFile("_resources/fonts/mplus-1p-regular.ttf") + f, err := ebitenutil.OpenFile(ebitenutil.JoinStringsIntoFilePath("_resources", "fonts", "mplus-1p-regular.ttf")) if err != nil { log.Fatal(err) }