OXYGENHUB
◆ main openmsx / src / settings / FilenameSetting.cc
636 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
1
#include "FilenameSetting.hh"
2
3
#include "Completer.hh"
4
#include "FileContext.hh"
5
6
namespace openmsx {
7
8
FilenameSetting::FilenameSetting(
9
		CommandController& commandController_,
10
		std::string_view name_, static_string_view description_,
11
		std::string_view initialValue)
12
	: Setting(commandController_, name_, description_,
13
	          TclObject(initialValue), Setting::Save::YES)
14
{
15
	init();
16
}
17
18
std::string_view FilenameSetting::getTypeString() const
19
{
20
	return "filename";
21
}
22
23
void FilenameSetting::tabCompletion(std::vector<std::string>& tokens) const
24
{
25
	Completer::completeFileName(tokens, systemFileContext());
26
}
27
28
} // namespace openmsx