Forgot to remove build sprites from the old process

This commit is contained in:
Luciano Ciccariello 2024-10-27 20:31:46 +00:00
parent cc0e7b5b47
commit 391d06f292
3 changed files with 2 additions and 11 deletions

View File

@ -39,7 +39,7 @@ func (h *handler) Extract(e assets.ExtractEntry) error {
}
func (h *handler) Build(e assets.BuildEntry) error {
return BuildSprites(assetPath(e.AssetDir, e.Name), e.SrcDir)
return buildSprites(assetPath(e.AssetDir, e.Name), e.SrcDir)
}
func assetPath(dir, name string) string {

View File

@ -84,7 +84,7 @@ func ReadSpritesBanks(r io.ReadSeeker, baseAddr, addr psx.Addr) (SpriteBanks, da
}, datarange.MergeDataRanges(spriteRanges), nil
}
func BuildSprites(fileName string, outputDir string) error {
func buildSprites(fileName string, outputDir string) error {
ovlName := path.Base(outputDir)
data, err := os.ReadFile(fileName)
if err != nil {

View File

@ -4,7 +4,6 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/xeeynamo/sotn-decomp/tools/sotn-assets/assets/spritebanks"
"golang.org/x/sync/errgroup"
"hash/fnv"
"io"
@ -400,14 +399,6 @@ func buildAll(inputDir string, outputDir string) error {
}
return nil
})
eg.Go(func() error {
if err := spritebanks.BuildSprites(path.Join(inputDir, "sprites.json"), outputDir); err != nil {
if !errors.Is(err, fs.ErrNotExist) {
return err
}
}
return nil
})
eg.Go(func() error {
if err := buildEntityLayouts(path.Join(inputDir, "entity_layouts.json"), outputDir); err != nil {
if !errors.Is(err, fs.ErrNotExist) {