Fix bug when processing NCCH files directly, -p/--plain flag was not honoured.

This commit is contained in:
Jakcron
2022-03-29 17:34:45 +08:00
parent cbc20b2a15
commit b1629a4aa6
+1 -1
View File
@@ -77,7 +77,7 @@ int umain(const std::vector<std::string>& args, const std::vector<std::string>&
proc.setVerboseMode(set.opt.verbose);
proc.setVerifyMode(set.opt.verify);
proc.setRawMode(set.opt.raw);
proc.setPlainMode(set.opt.raw);
proc.setPlainMode(set.opt.plain);
proc.setShowSyscallName(set.exheader.show_syscalls_as_names);
proc.setRegionProcessOutputMode(proc.NcchRegion_Header, set.opt.info, false, tc::Optional<tc::io::Path>(), tc::Optional<tc::io::Path>());
proc.setRegionProcessOutputMode(proc.NcchRegion_ExHeader, set.opt.info, false, set.ncch.exheader_path, tc::Optional<tc::io::Path>());