mirror of
https://github.com/Xeeynamo/sotn-decomp.git
synced 2024-11-23 13:09:44 +00:00
Forgot to remove build sprites from the old process
This commit is contained in:
parent
cc0e7b5b47
commit
391d06f292
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user