diff --git a/src/openrct2-ui/windows/TitleMenu.cpp b/src/openrct2-ui/windows/TitleMenu.cpp index e068459a36..40d2d53a04 100644 --- a/src/openrct2-ui/windows/TitleMenu.cpp +++ b/src/openrct2-ui/windows/TitleMenu.cpp @@ -18,6 +18,9 @@ #include #include #include +//#include +//#include +//#include // clang-format off enum { @@ -204,7 +207,11 @@ static void window_title_menu_dropdown(rct_window* w, rct_widgetindex widgetInde Editor::LoadTrackManager(); break; case 4: - context_open_custom_user_content_folder(); + OpenRCT2::GetContext()->OpenCustomUserContentFolder(); + /*auto context = OpenRCT2::GetContext(); + auto env = context->GetPlatformEnvironment(); + auto uiContext = context->GetUiContext(); + uiContext->OpenFolder(env->GetDirectoryPath(OpenRCT2::DIRBASE::USER));*/ break; } } diff --git a/src/openrct2/Context.cpp b/src/openrct2/Context.cpp index 99024461b8..fabc7708e5 100644 --- a/src/openrct2/Context.cpp +++ b/src/openrct2/Context.cpp @@ -1267,11 +1267,6 @@ const utf8* context_get_path_legacy(int32_t pathId) return result; } -void context_open_custom_user_content_folder() -{ - GetContext()->OpenCustomUserContentFolder(); -} - bool platform_open_common_file_dialog(utf8* outFilename, file_dialog_desc* desc, size_t outSize) { try diff --git a/src/openrct2/Context.h b/src/openrct2/Context.h index 32f67b48d0..b16f576ae4 100644 --- a/src/openrct2/Context.h +++ b/src/openrct2/Context.h @@ -240,4 +240,3 @@ void context_quit(); const utf8* context_get_path_legacy(int32_t pathId); bool context_load_park_from_file(const utf8* path); bool context_load_park_from_stream(void* stream); -void context_open_custom_user_content_folder();