From 7230ac966be8e5e006c53fa7f6b6d0d895715083 Mon Sep 17 00:00:00 2001 From: Sander Schobers Date: Mon, 25 May 2020 22:24:58 +0200 Subject: [PATCH] Using the refactored Resources system. --- cmd/tins2020/tins2020.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/cmd/tins2020/tins2020.go b/cmd/tins2020/tins2020.go index 9e27834..627c8dc 100644 --- a/cmd/tins2020/tins2020.go +++ b/cmd/tins2020/tins2020.go @@ -5,10 +5,9 @@ import ( "image/color" "log" - "opslag.de/schobers/fs/ricefs" "opslag.de/schobers/geom" "opslag.de/schobers/zntg" - "opslag.de/schobers/zntg/addons/res" + "opslag.de/schobers/zntg/addons/riceres" "opslag.de/schobers/zntg/play" "opslag.de/schobers/zntg/ui" @@ -28,9 +27,8 @@ func main() { } func openResources(box *rice.Box) ui.Resources { - fs := ricefs.NewFs(box) - resources, _ := res.NewAferoFallbackResources(`res`, fs, `botanim`) - return resources + embedded := riceres.New(box) + return ui.NewFallbackResources(ui.NewPathResources(nil, box.Name()), embedded) } type app struct {