mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-05-10 06:24:57 +00:00
Unlinker: Move zone file into zone_source folder
This commit is contained in:
parent
d220aa8fde
commit
1d609cc2d2
@ -16,19 +16,22 @@ const CommandLineOption* optionHelp = CommandLineOption::Builder::Create()
|
|||||||
const CommandLineOption* optionMinimalZoneFile = CommandLineOption::Builder::Create()
|
const CommandLineOption* optionMinimalZoneFile = CommandLineOption::Builder::Create()
|
||||||
.WithShortName("min")
|
.WithShortName("min")
|
||||||
.WithLongName("minimal-zone")
|
.WithLongName("minimal-zone")
|
||||||
.WithDescription("Minimizes the size of the zone file output by only including assets that are not a dependency of another asset.")
|
.WithDescription(
|
||||||
|
"Minimizes the size of the zone file output by only including assets that are not a dependency of another asset.")
|
||||||
.Build();
|
.Build();
|
||||||
|
|
||||||
const CommandLineOption* optionList = CommandLineOption::Builder::Create()
|
const CommandLineOption* optionList = CommandLineOption::Builder::Create()
|
||||||
.WithShortName("l")
|
.WithShortName("l")
|
||||||
.WithLongName("list")
|
.WithLongName("list")
|
||||||
.WithDescription("Lists the contents of a zone instead of writing them to the disk.")
|
.WithDescription(
|
||||||
|
"Lists the contents of a zone instead of writing them to the disk.")
|
||||||
.Build();
|
.Build();
|
||||||
|
|
||||||
const CommandLineOption* optionOutputFolder = CommandLineOption::Builder::Create()
|
const CommandLineOption* optionOutputFolder = CommandLineOption::Builder::Create()
|
||||||
.WithShortName("o")
|
.WithShortName("o")
|
||||||
.WithLongName("output-folder")
|
.WithLongName("output-folder")
|
||||||
.WithDescription("Specifies the output folder containing the contents of the unlinked zones. Defaults to ./%zoneName%")
|
.WithDescription(
|
||||||
|
"Specifies the output folder containing the contents of the unlinked zones. Defaults to ./%zoneName%")
|
||||||
.WithParameter("outputFolderPath")
|
.WithParameter("outputFolderPath")
|
||||||
.Build();
|
.Build();
|
||||||
|
|
||||||
@ -127,7 +130,9 @@ int main(const int argc, const char** argv)
|
|||||||
|
|
||||||
FileAPI::DirectoryCreate(outputFolderPath);
|
FileAPI::DirectoryCreate(outputFolderPath);
|
||||||
|
|
||||||
FileAPI::File zoneDefinitionFile = FileAPI::Open(utils::Path::Combine(outputFolderPath, zone->m_name + ".zone"), FileAPI::Mode::MODE_WRITE);
|
FileAPI::File zoneDefinitionFile = FileAPI::Open(
|
||||||
|
utils::Path::Combine(utils::Path::Combine(outputFolderPath, "zone_source"), zone->m_name + ".zone"),
|
||||||
|
FileAPI::Mode::MODE_WRITE);
|
||||||
|
|
||||||
if (zoneDefinitionFile.IsOpen())
|
if (zoneDefinitionFile.IsOpen())
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user