1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 00:03:11 +01:00

Do not create title sequences directory unnecessarily

This commit is contained in:
Ted John
2018-05-20 18:39:52 +01:00
parent 46300f216f
commit efc14fe8b6

View File

@@ -169,6 +169,7 @@ namespace TitleSequenceManager
{
utf8 path[MAX_PATH];
GetUserSequencesPath(path, sizeof(path));
platform_ensure_directory_exists(path);
Path::Append(path, sizeof(path), name.c_str());
if (isZip)
{
@@ -295,7 +296,6 @@ namespace TitleSequenceManager
static void GetUserSequencesPath(utf8 * buffer, size_t bufferSize)
{
platform_get_user_directory(buffer, "title sequences", bufferSize);
platform_ensure_directory_exists(buffer);
}
static bool IsNameReserved(const std::string &name)