mirror of
https://github.com/shijimasoft/cia-unix.git
synced 2025-06-18 14:25:34 -04:00
automatic dependencies download added
This commit is contained in:
parent
4b7033142e
commit
889f0f74ae
@ -18,7 +18,6 @@ def gen_args(name : String, part_count : Int32) : String
|
||||
args += "-i '#{name}.#{partition}.ncch:#{partition}:#{partition}' "
|
||||
end
|
||||
end
|
||||
|
||||
return args
|
||||
end
|
||||
|
||||
@ -34,7 +33,12 @@ tools.each do |tool|
|
||||
abort "#{tool.colorize.mode :bold} not found. Make sure it's located in the #{"same directory".colorize.mode :underline}"
|
||||
end
|
||||
else
|
||||
abort "#{tool.lchop("./").colorize.mode :bold} not found. Make sure it's located in the #{"same directory".colorize.mode :underline}"
|
||||
print "Some #{"tools".colorize.mode :bold} is missing, do you want to download them? (y/n): "
|
||||
if ["y", "Y"].includes? gets.to_s
|
||||
system "./dltools.sh"
|
||||
else
|
||||
abort "#{tool.lchop("./").colorize.mode :bold} not found. Make sure it's located in the #{"same directory".colorize.mode :underline}"
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -31,4 +31,6 @@ fi
|
||||
|
||||
echo " * Cleaning up"
|
||||
rm -rf ctrtool-v0.7-*
|
||||
rm -rf makerom-v0.18-*
|
||||
rm -rf makerom-v0.18-*
|
||||
|
||||
chmod +x ctrtool makerom
|
Loading…
Reference in New Issue
Block a user