mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-01-17 05:51:49 +00:00
chore: restructure Linker and Unlinker for system testing
This commit is contained in:
19
src/LinkerCli/main.cpp
Normal file
19
src/LinkerCli/main.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#include "Linker.h"
|
||||
#include "Utils/Logging/Log.h"
|
||||
|
||||
int main(const int argc, const char** argv)
|
||||
{
|
||||
con::init();
|
||||
|
||||
LinkerArgs args;
|
||||
auto shouldContinue = true;
|
||||
if (!args.ParseArgs(argc, argv, shouldContinue))
|
||||
return 1;
|
||||
|
||||
if (!shouldContinue)
|
||||
return 0;
|
||||
|
||||
const auto linker = Linker::Create(std::move(args));
|
||||
|
||||
return linker->Start() ? 0 : 1;
|
||||
}
|
||||
Reference in New Issue
Block a user