mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-19 15:52:53 +00:00
Add skip obj unlinker arg
This commit is contained in:
parent
2823a46b92
commit
bba96b248d
@ -45,7 +45,7 @@ class Unlinker::Impl
|
||||
|
||||
_NODISCARD bool ShouldLoadObj() const
|
||||
{
|
||||
return m_args.m_task != UnlinkerArgs::ProcessingTask::LIST;
|
||||
return m_args.m_task != UnlinkerArgs::ProcessingTask::LIST && !m_args.m_skip_obj;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -403,7 +403,7 @@ class Unlinker::Impl
|
||||
if (ShouldLoadObj())
|
||||
{
|
||||
ObjLoading::LoadReferencedContainersForZone(&searchPathsForZone, zone.get());
|
||||
ObjLoading::LoadObjDataForZone(&searchPathsForZone, zone.get());
|
||||
ObjLoading::LoadObjDataForZone(&searchPathsForZone, zone.get());
|
||||
}
|
||||
|
||||
if (!HandleZone(zone.get()))
|
||||
|
@ -73,6 +73,12 @@ const CommandLineOption* const OPTION_MODEL_FORMAT =
|
||||
.WithParameter("modelFormatValue")
|
||||
.Build();
|
||||
|
||||
const CommandLineOption* const OPTION_SKIP_OBJ =
|
||||
CommandLineOption::Builder::Create()
|
||||
.WithLongName("skip-obj")
|
||||
.WithDescription("Skips loading raw obj data.")
|
||||
.Build();
|
||||
|
||||
const CommandLineOption* const OPTION_GDT =
|
||||
CommandLineOption::Builder::Create()
|
||||
.WithLongName("gdt")
|
||||
@ -112,6 +118,7 @@ const CommandLineOption* const COMMAND_LINE_OPTIONS[]
|
||||
OPTION_SEARCH_PATH,
|
||||
OPTION_IMAGE_FORMAT,
|
||||
OPTION_MODEL_FORMAT,
|
||||
OPTION_SKIP_OBJ,
|
||||
OPTION_GDT,
|
||||
OPTION_EXCLUDE_ASSETS,
|
||||
OPTION_INCLUDE_ASSETS,
|
||||
@ -124,6 +131,7 @@ UnlinkerArgs::UnlinkerArgs()
|
||||
m_task(ProcessingTask::DUMP),
|
||||
m_minimal_zone_def(false),
|
||||
m_asset_type_handling(AssetTypeHandling::EXCLUDE),
|
||||
m_skip_obj(false),
|
||||
m_use_gdt(false),
|
||||
m_verbose(false)
|
||||
{
|
||||
@ -298,6 +306,9 @@ bool UnlinkerArgs::ParseArgs(const int argc, const char** argv)
|
||||
}
|
||||
}
|
||||
|
||||
// --skip-obj
|
||||
m_skip_obj = m_argument_parser.IsOptionSpecified(OPTION_SKIP_OBJ);
|
||||
|
||||
// --gdt
|
||||
m_use_gdt = m_argument_parser.IsOptionSpecified(OPTION_GDT);
|
||||
|
||||
|
@ -54,6 +54,7 @@ public:
|
||||
std::unordered_map<std::string, size_t> m_specified_asset_type_map;
|
||||
AssetTypeHandling m_asset_type_handling;
|
||||
|
||||
bool m_skip_obj;
|
||||
bool m_use_gdt;
|
||||
|
||||
bool m_verbose;
|
||||
|
Loading…
x
Reference in New Issue
Block a user