mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-21 08:12:09 -05:00
19 lines
456 B
C++
19 lines
456 B
C++
#include "PeImportFirst.hpp"
|
|
|
|
#include <cstdio>
|
|
#include <exception>
|
|
|
|
int main(int argc, char** argv) {
|
|
if (argc != 3) {
|
|
std::fprintf(stderr, "usage: pe_import_first <file> <dll>\n");
|
|
return 2;
|
|
}
|
|
try {
|
|
Allocator::MoveImportFirstInFile(argv[1], argv[2]);
|
|
} catch (const std::exception& error) {
|
|
std::fprintf(stderr, "pe_import_first: %s: %s\n", argv[1], error.what());
|
|
return 1;
|
|
}
|
|
return 0;
|
|
}
|