mirror of https://github.com/OpenRCT2/OpenRCT2.git
Create config directory if it doesn't exist
This commit is contained in:
parent
204fdaa66a
commit
e996c83b70
|
@ -572,6 +572,9 @@ namespace Config
|
|||
{
|
||||
try
|
||||
{
|
||||
auto directory = Path::GetDirectory(path);
|
||||
Path::CreateDirectory(directory);
|
||||
|
||||
auto fs = FileStream(path, FILE_MODE_WRITE);
|
||||
auto writer = std::unique_ptr<IIniWriter>(CreateIniWriter(&fs));
|
||||
WriteGeneral(writer.get());
|
||||
|
|
Loading…
Reference in New Issue