mirror of
https://github.com/shijimasoft/cia-unix.git
synced 2025-06-18 14:25:34 -04:00
fix regex selector
This commit is contained in:
parent
f2a7dfc41d
commit
12814d1ca4
@ -127,7 +127,7 @@ Dir["*.cia"].each do |cia|
|
||||
end
|
||||
log.puts %x[./makerom -f cia -ignoresign -target p -o '#{cutn}-decfirst.cia' #{args}]
|
||||
# patch
|
||||
elsif content.match /T.*d.*0004000E/
|
||||
elsif content.match /T.*d.*0004000(e|E)/
|
||||
puts "CIA Type: #{"Patch".colorize.mode(:bold)}"
|
||||
log.puts %x[python2.7 decrypt.py '#{cia}']
|
||||
|
||||
@ -137,7 +137,7 @@ Dir["*.cia"].each do |cia|
|
||||
log.puts %x[./makerom -f cia -ignoresign -target p -o '#{cutn} (Patch)-decrypted.cia' #{args}]
|
||||
check_decrypt("#{cutn} (Patch)", "cia")
|
||||
# dlc
|
||||
elsif content.match /T.*d.*0004008C/
|
||||
elsif content.match /T.*d.*0004008(c|C)/
|
||||
puts "CIA Type: #{"DLC".colorize.mode(:bold)}"
|
||||
log.puts %x[python2.7 decrypt.py '#{cia}']
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user