diff --git a/src/Unlinker/Unlinker.cpp b/src/Unlinker/Unlinker.cpp index d2d55bd6..2247d6e2 100644 --- a/src/Unlinker/Unlinker.cpp +++ b/src/Unlinker/Unlinker.cpp @@ -228,7 +228,7 @@ class Unlinker::Impl context.m_zone = zone; context.m_base_path = outputFolderPath; - if(!m_args.m_raw) + if(m_args.m_use_gdt) { if (!OpenGdtFile(zone, zoneDefinitionFileFolder, gdtStream)) return false; @@ -240,7 +240,7 @@ class Unlinker::Impl ObjWriting::DumpZone(context); - if(!m_args.m_raw) + if(m_args.m_use_gdt) { context.m_gdt->EndStream(); gdtStream.close(); diff --git a/src/Unlinker/UnlinkerArgs.cpp b/src/Unlinker/UnlinkerArgs.cpp index f2376ab5..717ddff8 100644 --- a/src/Unlinker/UnlinkerArgs.cpp +++ b/src/Unlinker/UnlinkerArgs.cpp @@ -57,10 +57,10 @@ const CommandLineOption* const OPTION_IMAGE_FORMAT = .WithParameter("imageFormatValue") .Build(); -const CommandLineOption* const OPTION_RAW = +const CommandLineOption* const OPTION_GDT = CommandLineOption::Builder::Create() - .WithLongName("raw") - .WithDescription("Prevents generation of a GDT and dumps assets as raw whenever possible.") + .WithLongName("gdt") + .WithDescription("Dumps assets in a GDT whenever possible.") .Build(); const CommandLineOption* const COMMAND_LINE_OPTIONS[] @@ -72,7 +72,7 @@ const CommandLineOption* const COMMAND_LINE_OPTIONS[] OPTION_OUTPUT_FOLDER, OPTION_SEARCH_PATH, OPTION_IMAGE_FORMAT, - OPTION_RAW + OPTION_GDT }; UnlinkerArgs::UnlinkerArgs() @@ -246,8 +246,8 @@ bool UnlinkerArgs::ParseArgs(const int argc, const char** argv) } } - // --raw - m_raw = m_argument_parser.IsOptionSpecified(OPTION_RAW); + // --gdt + m_use_gdt = m_argument_parser.IsOptionSpecified(OPTION_GDT); return true; } diff --git a/src/Unlinker/UnlinkerArgs.h b/src/Unlinker/UnlinkerArgs.h index 647bab8a..b1e75f77 100644 --- a/src/Unlinker/UnlinkerArgs.h +++ b/src/Unlinker/UnlinkerArgs.h @@ -39,7 +39,7 @@ public: std::string m_output_folder; bool m_minimal_zone_def; - bool m_raw; + bool m_use_gdt; bool m_verbose;