- --exclude-sce-module <file> (repeatable) drops one title module from guest conversion, e.g. a title libc.prx, while the rest of sce_module is still relinked as guest modules - the instruction scanner stops at zero padding that ends a code segment with an odd byte instead of failing on a truncated `add [rax], al` Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
33 lines
741 B
C++
33 lines
741 B
C++
#ifndef CORE_RELINKER_CLI_INCLUDE_CLI_HPP
|
|
#define CORE_RELINKER_CLI_INCLUDE_CLI_HPP
|
|
|
|
#include <set>
|
|
#include <string>
|
|
#include <cstdint>
|
|
|
|
namespace Cli {
|
|
|
|
struct Args {
|
|
bool skipSyscallCheck = false;
|
|
bool skipSceModule = false;
|
|
bool toIntel = false;
|
|
bool writeRegistry = false;
|
|
bool toWindows = false;
|
|
bool lazyBinding = false;
|
|
bool autorun = false;
|
|
bool windowsDiagnostics = false;
|
|
bool windowsGui = false;
|
|
std::uint32_t unusedFilterLevel = 0;
|
|
std::string inputPath;
|
|
std::string outputPath;
|
|
std::string runPath = "$ORIGIN/libs";
|
|
std::set<std::string> excludedSceModules;
|
|
};
|
|
|
|
Args ParseArgs(int argc, char* argv[]);
|
|
|
|
int Autorun(const std::string& absPath, bool toWindows);
|
|
|
|
}
|
|
|
|
#endif
|