2017-05-30 21:33:35 +01:00
|
|
|
|
// /***************************************************************************
|
|
|
|
|
|
// The Disc Image Chef
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
//
|
|
|
|
|
|
// Filename : Version.cs
|
2017-12-19 03:50:57 +00:00
|
|
|
|
// Author(s) : Natalia Portillo <claunia@claunia.com>
|
2017-05-30 21:33:35 +01:00
|
|
|
|
//
|
2017-12-19 03:50:57 +00:00
|
|
|
|
// Component : Core algorithms.
|
2017-05-30 21:33:35 +01:00
|
|
|
|
//
|
|
|
|
|
|
// --[ Description ] ----------------------------------------------------------
|
|
|
|
|
|
//
|
2017-12-19 03:50:57 +00:00
|
|
|
|
// Returns DiscImageChef version.
|
2017-05-30 21:33:35 +01:00
|
|
|
|
//
|
|
|
|
|
|
// --[ License ] --------------------------------------------------------------
|
|
|
|
|
|
//
|
|
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
2017-12-20 02:08:37 +00:00
|
|
|
|
// it under the terms of the GNU General internal License as
|
2017-05-30 21:33:35 +01:00
|
|
|
|
// published by the Free Software Foundation, either version 3 of the
|
|
|
|
|
|
// License, or (at your option) any later version.
|
|
|
|
|
|
//
|
|
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2017-12-20 02:08:37 +00:00
|
|
|
|
// GNU General internal License for more details.
|
2017-05-30 21:33:35 +01:00
|
|
|
|
//
|
2017-12-20 02:08:37 +00:00
|
|
|
|
// You should have received a copy of the GNU General internal License
|
2017-05-30 21:33:35 +01:00
|
|
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
//
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
2017-12-19 03:50:57 +00:00
|
|
|
|
// Copyright © 2011-2018 Natalia Portillo
|
2017-05-30 21:33:35 +01:00
|
|
|
|
// ****************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
using DiscImageChef.Interop;
|
|
|
|
|
|
using Schemas;
|
|
|
|
|
|
|
|
|
|
|
|
namespace DiscImageChef.Core
|
|
|
|
|
|
{
|
2017-12-20 02:08:37 +00:00
|
|
|
|
static class Version
|
2017-05-30 21:33:35 +01:00
|
|
|
|
{
|
2017-12-20 02:08:37 +00:00
|
|
|
|
internal static SoftwareType GetSoftwareType(PlatformID platform)
|
2017-05-30 21:33:35 +01:00
|
|
|
|
{
|
|
|
|
|
|
return new SoftwareType
|
|
|
|
|
|
{
|
|
|
|
|
|
Name = "DiscImageChef",
|
|
|
|
|
|
OperatingSystem = platform.ToString(),
|
|
|
|
|
|
Version = typeof(Version).Assembly.GetName().Version.ToString()
|
|
|
|
|
|
};
|
|
|
|
|
|
}
|
2017-06-04 02:24:04 +01:00
|
|
|
|
|
2017-12-20 02:08:37 +00:00
|
|
|
|
internal static string GetVersion()
|
2017-06-04 02:24:04 +01:00
|
|
|
|
{
|
|
|
|
|
|
return typeof(Version).Assembly.GetName().Version.ToString();
|
|
|
|
|
|
}
|
2017-05-30 21:33:35 +01:00
|
|
|
|
}
|
2017-12-19 20:33:03 +00:00
|
|
|
|
}
|