mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-04-05 04:06:08 +00:00
LibCore: Add CConfigFile::open() for opening an arbitrary INI file
This commit is contained in:
@@ -21,6 +21,11 @@ NonnullRefPtr<CConfigFile> CConfigFile::get_for_system(const String& app_name)
|
||||
return adopt(*new CConfigFile(path));
|
||||
}
|
||||
|
||||
NonnullRefPtr<CConfigFile> CConfigFile::open(const String& path)
|
||||
{
|
||||
return adopt(*new CConfigFile(path));
|
||||
}
|
||||
|
||||
CConfigFile::CConfigFile(const String& file_name)
|
||||
: m_file_name(file_name)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user