From c48627aec9cea803caf377db15899aab47a22a46 Mon Sep 17 00:00:00 2001 From: Aubrey Taylor Date: Sun, 26 Jan 2025 02:40:33 -0600 Subject: [PATCH] gitignore cleanup --- .gitignore | 6 +++--- extract.nu | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index e35cc95..f8a1ca3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ /target /.direnv -/assets/* -!/assets/.gitkeep +/assets/build +/assets/sa +/assets/mof thbgm.dat research/dump/* -!/research/dump/sa/.gitkeep diff --git a/extract.nu b/extract.nu index a6259ab..e4dac0f 100644 --- a/extract.nu +++ b/extract.nu @@ -9,6 +9,7 @@ def main [game_folder: path, version: int] { } let assets = $"assets/($game.folder)" + mkdir $assets let thver = $"th($game.version)" thdat -C $assets -x $version $"($game_folder)/($thver).dat" try { @@ -16,6 +17,7 @@ def main [game_folder: path, version: int] { } catch { } let research = $"research/dump/($game.folder)" + mkdir $research let replt = {|ext| str replace $ext $"t($ext)"}; let dump = {|ext| ls $assets | get name | where {str ends-with $".($ext)"} | each {path basename}