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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user