Skip to content

Commit ae7fdc8

Browse files
committed
- Minor bugfixes to Advanced Modpack UI
1 parent 7f852d2 commit ae7fdc8

File tree

1 file changed

+4
-2
lines changed
  • xivModdingFramework/Mods/FileTypes

1 file changed

+4
-2
lines changed

xivModdingFramework/Mods/FileTypes/TTMP.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,14 @@ public async Task<int> CreateWizardModPack(ModPackData modPackData, IProgress<do
7171
var imageList = new HashSet<string>();
7272
var pageCount = 1;
7373

74+
Version version = modPackData.Version == null ? new Version(1, 0, 0, 0) : modPackData.Version;
7475
var modPackJson = new ModPackJson
7576
{
7677
TTMPVersion = _currentWizardTTMPVersion,
7778
MinimumFrameworkVersion = _minimumAssembly,
7879
Name = modPackData.Name,
7980
Author = modPackData.Author,
80-
Version = modPackData.Version.ToString(),
81+
Version = version.ToString(),
8182
Description = modPackData.Description,
8283
Url = modPackData.Url,
8384
ModPackPages = new List<ModPackPageJson>()
@@ -117,11 +118,12 @@ public async Task<int> CreateWizardModPack(ModPackData modPackData, IProgress<do
117118
imageList.Add(imageFileName);
118119
}
119120

121+
var fn = imageFileName == "" ? "" : "images/" + Path.GetFileName(imageFileName);
120122
var modOptionJson = new ModOptionJson
121123
{
122124
Name = modOption.Name,
123125
Description = modOption.Description,
124-
ImagePath = "images/" + Path.GetFileName(imageFileName),
126+
ImagePath = fn,
125127
GroupName = modOption.GroupName,
126128
SelectionType = modOption.SelectionType,
127129
IsChecked=modOption.IsChecked,

0 commit comments

Comments
 (0)