gitignore cleanup

This commit is contained in:
Aubrey 2025-01-26 02:40:33 -06:00
parent 74cce227a5
commit c48627aec9
No known key found for this signature in database
2 changed files with 5 additions and 3 deletions

6
.gitignore vendored
View file

@ -1,7 +1,7 @@
/target /target
/.direnv /.direnv
/assets/* /assets/build
!/assets/.gitkeep /assets/sa
/assets/mof
thbgm.dat thbgm.dat
research/dump/* research/dump/*
!/research/dump/sa/.gitkeep

View file

@ -9,6 +9,7 @@ def main [game_folder: path, version: int] {
} }
let assets = $"assets/($game.folder)" let assets = $"assets/($game.folder)"
mkdir $assets
let thver = $"th($game.version)" let thver = $"th($game.version)"
thdat -C $assets -x $version $"($game_folder)/($thver).dat" thdat -C $assets -x $version $"($game_folder)/($thver).dat"
try { try {
@ -16,6 +17,7 @@ def main [game_folder: path, version: int] {
} catch { } } catch { }
let research = $"research/dump/($game.folder)" let research = $"research/dump/($game.folder)"
mkdir $research
let replt = {|ext| str replace $ext $"t($ext)"}; let replt = {|ext| str replace $ext $"t($ext)"};
let dump = {|ext| let dump = {|ext|
ls $assets | get name | where {str ends-with $".($ext)"} | each {path basename} ls $assets | get name | where {str ends-with $".($ext)"} | each {path basename}