Skip to content

Commit 87b4a18

Browse files
More changes
1 parent 245c7fb commit 87b4a18

4 files changed

Lines changed: 26 additions & 1 deletion

File tree

Source/HedgeModManager.UI/Controls/Modals/ModDownloaderModal.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ private async void OnDownloadClick(object? sender, RoutedEventArgs e)
8181
return;
8282
}
8383

84-
string downloadPath = Path.GetTempFileName();
84+
string downloadPath = Paths.GetUniqueTempPath();
8585

8686
await new Download(Localize("Download.Text.DownloadMod", downloadInfo.Name), true, -1).OnRun(async (d, c) =>
8787
{

Source/HedgeModManager.UI/Program.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ public static void Main(string[] args)
123123
}
124124
}
125125

126+
Paths.CreateDirectories();
126127
Network.UserAgent = UserAgent;
127128
Network.Initialize();
128129

Source/HedgeModManager/Paths.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ public static string GetProgramPath()
2121
companyName, productName);
2222
}
2323

24+
public static void CreateDirectories()
25+
{
26+
Directory.CreateDirectory(GetProgramPath());
27+
Directory.CreateDirectory(GetCachePath());
28+
Directory.CreateDirectory(GetConfigPath());
29+
Directory.CreateDirectory(GetTempPath());
30+
}
31+
2432
public static string GetCachePath()
2533
{
2634
return Path.Combine(GetProgramPath(), "Cache");
@@ -36,6 +44,11 @@ public static string GetTempPath()
3644
return Path.Combine(GetProgramPath(), "Temp");
3745
}
3846

47+
public static string GetUniqueTempPath()
48+
{
49+
return Path.Combine(GetTempPath(), Guid.NewGuid().ToString());
50+
}
51+
3952
public static string GetActualUserConfigPath()
4053
{
4154
if (Environment.GetEnvironmentVariable("HOME") is string home)

flatpak/hedgemodmanager.metainfo.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,17 @@
3636
</ul>
3737
</description>
3838

39+
<screenshots>
40+
<screenshot type="default">
41+
<image>https://raw.githubusercontent.com/hedge-dev/HedgeModManager/245c7fb001d95568b89b7952a8e13a74ab3d6483/data/screenshot01.png</image>
42+
<caption>Mods tab showing the currently installed and enabled mods</caption>
43+
</screenshot>
44+
<screenshot>
45+
<image>https://raw.githubusercontent.com/hedge-dev/HedgeModManager/245c7fb001d95568b89b7952a8e13a74ab3d6483/data/screenshot01.png</image>
46+
<caption>Settings tab showing the game, mod loader and manager settings</caption>
47+
</screenshot>
48+
</screenshots>
49+
3950
<releases>
4051
<release version="8.0.0" date="2025-03-02">
4152
<description>

0 commit comments

Comments
 (0)