mirror of
https://github.com/stevenhowes/GoRetro.git
synced 2026-05-26 15:53:31 +01:00
File caching and stats for tex/file caches.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user