mirror of
https://github.com/SabreTools/MPF.git
synced 2026-07-02 17:24:48 +00:00
* Begin reducing complexity of parameters classes * Make the method virtual, not the field * Consolidate helper methods * Fix "empty" commands; Fix DD generation * Handle all sorts of numerical values * Rip out remaining unneeded enum
22 lines
569 B
C#
22 lines
569 B
C#
using MPF.Data;
|
|
|
|
namespace MPF.DD
|
|
{
|
|
public static class Converters
|
|
{
|
|
#region Cross-enumeration conversions
|
|
|
|
/// <summary>
|
|
/// Get the default extension for a given disc type
|
|
/// </summary>
|
|
/// <param name="type">MediaType value to check</param>
|
|
/// <returns>Valid extension (with leading '.'), null on error</returns>
|
|
public static string Extension(MediaType? type)
|
|
{
|
|
// DD has a single, unified output format by default
|
|
return ".bin";
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
} |