Exemple #1
0
 void LoadRoms(const Parameters::Accessor& params)
 {
   Parameters::DataType kernal, basic, chargen;
   params.FindValue(Parameters::ZXTune::Core::Plugins::SID::KERNAL, kernal);
   params.FindValue(Parameters::ZXTune::Core::Plugins::SID::BASIC, basic);
   params.FindValue(Parameters::ZXTune::Core::Plugins::SID::CHARGEN, chargen);
   Engine->setRoms(GetData(kernal, GetKernalROM()), GetData(basic, GetBasicROM()), GetData(chargen, GetChargenROM()));
 }
Exemple #2
0
String GetModuleTitle(const String& format, const Parameters::Accessor& props)
{
  const Strings::Template::Ptr fmtTemplate = Strings::Template::Create(format);
  const String& emptyTitle = fmtTemplate->Instantiate(Strings::SkipFieldsSource());
  String curTitle = fmtTemplate->Instantiate(Parameters::FieldsSourceAdapter<Strings::SkipFieldsSource>(props));
  if (curTitle == emptyTitle)
  {
    props.FindValue(Module::ATTR_FULLPATH, curTitle);
  }
  return curTitle;
}
Exemple #3
0
 bool HasSidContainer(const Parameters::Accessor& params)
 {
   Parameters::StringType container;
   Require(params.FindValue(Module::ATTR_CONTAINER, container));
   return container == "SID" || boost::algorithm::ends_with(container, ">SID");
 }