Updates exported mod zip files to use a base folder

Instead of all of the mod files being in the root directory of the zip file, they are now in /ModName/, making it easier for modders to export upload-ready zip files of their mods.
This commit is contained in:
Death 2017-10-07 00:58:17 -05:00 committed by Jesse Plamondon-Willard
parent 97c441dd02
commit 6f3fc68daf
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@
{
// get file info
string filePath = file.ItemSpec;
string entryName = file.GetMetadata("RecursiveDir") + file.GetMetadata("Filename") + file.GetMetadata("Extension");
string entryName = ModName + '/' + file.GetMetadata("RecursiveDir") + file.GetMetadata("Filename") + file.GetMetadata("Extension");
if (new FileInfo(filePath).Directory.Name.Equals("i18n", StringComparison.InvariantCultureIgnoreCase))
entryName = Path.Combine("i18n", entryName);