Skip to content

Commit

Permalink
Remove _0 and _1 from target file name if game is SK/SSE
Browse files Browse the repository at this point in the history
  • Loading branch information
ousnius committed Oct 29, 2016
1 parent 7cbca75 commit 9a31fb2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/program/OutfitProject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1832,6 +1832,12 @@ int OutfitProject::AddNif(const string& fileName, bool clear, const string& inOu
mGamePath = mGamePath.Mid(pos);
else
mGamePath.Clear();

if (owner->targetGame == SKYRIM || owner->targetGame == SKYRIMSE) {
wxString fileRest;
if (mGameFile.EndsWith("_0", &fileRest) || mGameFile.EndsWith("_1", &fileRest))
mGameFile = fileRest;
}
}

NifFile nif;
Expand Down

0 comments on commit 9a31fb2

Please sign in to comment.