mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-27 16:54:52 +01:00
Close #11437: Migrate old platform methods
This commit is contained in:
committed by
GitHub
parent
b424682934
commit
5edc561715
@@ -18,7 +18,7 @@
|
||||
#include <openrct2/localisation/Formatter.h>
|
||||
#include <openrct2/localisation/Localisation.h>
|
||||
#include <openrct2/object/ObjectManager.h>
|
||||
#include <openrct2/platform/Platform2.h>
|
||||
#include <openrct2/platform/Platform.h>
|
||||
#include <openrct2/ride/RideConstruction.h>
|
||||
#include <openrct2/ride/RideData.h>
|
||||
#include <openrct2/ride/TrackDesign.h>
|
||||
@@ -432,7 +432,7 @@ static void WindowInstallTrackDesign(rct_window* w)
|
||||
{
|
||||
auto env = OpenRCT2::GetContext()->GetPlatformEnvironment();
|
||||
auto destPath = env->GetDirectoryPath(OpenRCT2::DIRBASE::USER, OpenRCT2::DIRID::TRACK);
|
||||
if (!platform_ensure_directory_exists(destPath.c_str()))
|
||||
if (!Platform::EnsureDirectoryExists(destPath.c_str()))
|
||||
{
|
||||
log_error("Unable to create directory '%s'", destPath.c_str());
|
||||
context_show_error(STR_CANT_SAVE_TRACK_DESIGN, STR_NONE, {});
|
||||
|
||||
Reference in New Issue
Block a user