Skip to content

Commit

Permalink
Added a new private method to the FrmMainW class for getting the loca…
Browse files Browse the repository at this point in the history
…l screenshot file name of the selected HUD.
  • Loading branch information
xvitaly committed Sep 18, 2024
1 parent 480e479 commit 4fb038a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/srcrepair/FrmMainW.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1700,6 +1700,15 @@ private string GetHUDDownloadURI(bool ForceMirror)
return Result;
}

/// <summary>
/// Gets the local screenshot file name of the selected HUD.
/// </summary>
/// <returns>Returns full path to the HUD screenshot file.</returns>
private string GetHUDScreenshotFileName()
{
return Path.Combine(App.AppHUDDir, Path.GetFileName(App.SourceGames[AppSelector.Text].HUDMan[HD_HSel.Text].Preview));
}

/// <summary>
/// Downloads HUD archive from the main or reserve server.
/// </summary>
Expand Down

0 comments on commit 4fb038a

Please sign in to comment.