mirror of
https://github.com/taurusxin/ncmdump.git
synced 2026-10-02 17:38:06 +08:00
feat: added project files
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user