File caching and stats for tex/file caches.

This commit is contained in:
stevenhowes
2022-03-27 19:38:38 +01:00
parent 094a2e3f64
commit e9a53fbf05
4 changed files with 40 additions and 9 deletions
+5 -1
View File
@@ -9,6 +9,7 @@ package GoRetro
import (
"encoding/json"
"fmt"
"time"
"github.com/veandco/go-sdl2/sdl"
@@ -119,7 +120,10 @@ func NewSequence(
var seq Sequence
jsonFile := GetFile(indexpath)
jsonFile, err := GetFile(indexpath)
if err != nil {
return nil, fmt.Errorf("loading sequence %v: %v", indexpath, err)
}
json.Unmarshal(jsonFile.Data, &seq.frames)