feat: added project files

This commit is contained in:
TaurusXin
2021-10-06 17:34:29 +01:00
parent 13a2db3f75
commit c956386b6e
122 changed files with 23431 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
#include "ncmcrypt.h"
#include <stdexcept>
int main(int argc, char *argv[]) {
if (argc <= 1) {
std::cout << "Please input file path!" << std::endl;
return 1;
}
try {
int i;
for (i = 1; i < argc; i++) {
NeteaseCrypt crypt(argv[i]);
crypt.Dump();
crypt.FixMetadata();
std::cout << crypt.dumpFilepath() << std::endl;
}
} catch (std::invalid_argument e) {
std::cout << "Exception: " << e.what() << std::endl;
} catch (...) {
std::cout << "Unexcept exception!" << std::endl;
}
return 0;
}