Remove internal/conv

This sets font rendering back a little bit, but not much.
This commit is contained in:
2020-03-21 13:37:20 +00:00
parent 4c0355ac4f
commit be4229b8fe
8 changed files with 145 additions and 220 deletions

View File

@@ -3,6 +3,7 @@ package assetstore
import (
"fmt"
"io/ioutil"
"log"
"os"
"path/filepath"
"strings"
@@ -91,7 +92,10 @@ func (a *AssetStore) lookup(name, ext string, dirs ...string) (string, error) {
for _, dir := range dirs {
dir = canonical(dir)
log.Printf("Looking in canonical dir %s", dir)
if base, ok := a.entries[dir]; ok {
log.Printf(" base: %#+v", base)
log.Printf(" filename: %v", filename)
if file, ok := base[filename]; ok {
actualDir := a.entries[RootDir][dir]
return filepath.Join(a.RootDir, actualDir, file), nil