#include "FilenameSetting.hh"
#include "Completer.hh"
#include "FileContext.hh"

namespace openmsx {

FilenameSetting::FilenameSetting(
		CommandController& commandController_,
		std::string_view name_, std::string_view description_,
		std::string_view initialValue)
	: Setting(commandController_, name_, description_,
	          TclObject(initialValue), Setting::SAVE)
{
	init();
}

std::string_view FilenameSetting::getTypeString() const
{
	return "filename";
}

void FilenameSetting::tabCompletion(std::vector<std::string>& tokens) const
{
	Completer::completeFileName(tokens, systemFileContext());
}

} // namespace openmsx
