Skip to content

Commit

Permalink
Possible fix for issue #1
Browse files Browse the repository at this point in the history
  • Loading branch information
RektInator committed Oct 2, 2019
1 parent 654ae73 commit e78985e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/ZoneTool/ZoneTool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ namespace ZoneTool
return;
}

bool isReferencing = false;
auto isReferencing = false;
auto row = CsvParser_getRow(parser);
while (row != nullptr)
{
Expand All @@ -139,7 +139,7 @@ namespace ZoneTool
{
if (row->numOfFields_ >= 2)
{
isReferencing = (row->fields_[1] == "true"s) ? true : false;
isReferencing = row->fields_[1] == "true"s;
}
}
// this will use a directory iterator to automatically add assets
Expand All @@ -148,7 +148,7 @@ namespace ZoneTool
try
{
AddAssetsUsingIterator(fastfile, "fx", "fx", ".fxe", true, zone.get());
AddAssetsUsingIterator(fastfile, "xanimparts", "XAnim", ".xae", true, zone.get());
AddAssetsUsingIterator(fastfile, "xanimparts", "XAnim", ".xae2", true, zone.get());
AddAssetsUsingIterator(fastfile, "xmodel", "XModel", ".xme5", true, zone.get());
}
catch (std::exception& ex)
Expand Down Expand Up @@ -222,6 +222,11 @@ namespace ZoneTool
row = CsvParser_getRow(parser);
}

if (linker->Version() == "IW4"s || linker->Version() == "IW5"s)
{
zone->AddAssetOfType("techset", ",wc_l_hsm_r0c0n0s0");
}

// free csv parser
CsvParser_destroy(parser);

Expand Down

0 comments on commit e78985e

Please sign in to comment.