Added the Win10 plugin to the Greenshot installer.

This commit is contained in:
Robin 2016-10-02 16:08:22 +02:00
commit f2649a1feb
7 changed files with 59 additions and 10 deletions

View file

@ -406,7 +406,7 @@ namespace GreenshotPlugin.Core {
/// <param name="pattern">String with pattern %var%</param>
/// <param name="filenameSafeMode">true to make sure everything is filenamesafe</param>
/// <returns>Filled string</returns>
public static string FillCmdVariables(string pattern, bool filenameSafeMode)
public static string FillCmdVariables(string pattern, bool filenameSafeMode = true)
{
IDictionary processVars = null;
IDictionary userVars = null;

View file

@ -38,6 +38,16 @@ namespace GreenshotPlugin.Core
return operatingSystem.Version.Major == 10;
}
/// <summary>
/// Test if the current OS is Windows 10 or later
/// </summary>
/// <param name="operatingSystem">OperatingSystem from Environment.OSVersion</param>
/// <returns>true if we are running on Windows 10 or later</returns>
public static bool IsWindows10OrLater(this OperatingSystem operatingSystem)
{
return operatingSystem.Version.Major >= 10;
}
/// <summary>
/// Test if the current OS is Windows 8(.1)
/// </summary>

View file

@ -99,9 +99,10 @@ namespace GreenshotPlugin.Core {
}
return null;
}
/// <summary>
/// Get icon for executable, from the cache
/// Get icon from resource files, from the cache.
/// Examples can be found here: https://diymediahome.org/windows-icons-reference-list-with-details-locations-images/
/// </summary>
/// <param name="path">path to the exe or dll</param>
/// <param name="index">index of the icon</param>