misc changes

- Add dumper script
- Fill importer code
- other fixes
This commit is contained in:
zhupengfei
2019-08-26 23:20:02 +08:00
parent 4f5a3effd8
commit d612b9cf37
9 changed files with 340 additions and 22 deletions
+3 -3
View File
@@ -59,7 +59,7 @@ bool SDMCDecryptor::DecryptAndWriteFile(const std::string& source,
aes, new CryptoPP::FileSink(destination.c_str(), true)),
true);
} catch (CryptoPP::Exception& e) {
LOG_ERROR(Frontend, "Error decrypting and writing file: {}", e.what());
LOG_ERROR(Core, "Error decrypting and writing file: {}", e.what());
return false;
}
return true;
@@ -73,7 +73,7 @@ std::vector<u8> SDMCDecryptor::DecryptFile(const std::string& source) const {
FileUtil::IOFile file(root_folder + source, "rb");
if (!file) {
LOG_ERROR(Frontend, "Could not open {}", root_folder + source);
LOG_ERROR(Core, "Could not open {}", root_folder + source);
return {};
}
@@ -81,7 +81,7 @@ std::vector<u8> SDMCDecryptor::DecryptFile(const std::string& source) const {
std::vector<u8> encrypted_data(size);
if (file.ReadBytes(encrypted_data.data(), size) != size) {
LOG_ERROR(Frontend, "Could not read file {}", root_folder + source);
LOG_ERROR(Core, "Could not read file {}", root_folder + source);
return {};
}