2015-03-09 20:51:33 +00:00
|
|
|
|
using BizHawk.Emulation.Common;
|
2015-03-01 16:37:51 +00:00
|
|
|
|
using BizHawk.Emulation.Common.IEmulatorExtensions;
|
|
|
|
|
using BizHawk.Emulation.Cores.Nintendo.SNES;
|
|
|
|
|
using BizHawk.Client.Common;
|
|
|
|
|
|
|
|
|
|
namespace BizHawk.Client.MultiHawk.CoreExtensions
|
|
|
|
|
{
|
|
|
|
|
public static class CoreExtensions
|
|
|
|
|
{
|
|
|
|
|
public static string DisplayName(this IEmulator core)
|
|
|
|
|
{
|
2016-12-04 18:30:51 +00:00
|
|
|
|
var attributes = core.Attributes();
|
2015-03-01 16:37:51 +00:00
|
|
|
|
|
|
|
|
|
var str = (!attributes.Released ? "(Experimental) " : string.Empty) +
|
|
|
|
|
attributes.CoreName;
|
|
|
|
|
|
2016-12-04 18:30:51 +00:00
|
|
|
|
if (core is LibsnesCore)
|
2015-03-01 16:37:51 +00:00
|
|
|
|
{
|
2016-12-04 18:30:51 +00:00
|
|
|
|
str += " (" + ((LibsnesCore)core).CurrentProfile + ")";
|
2015-03-01 16:37:51 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return str;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|