1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 11:33:03 +01:00

Removed c styled method.

This commit is contained in:
Christian Schubert
2018-09-04 18:05:11 +02:00
committed by Aaron van Geffen
parent 6e6753aaf1
commit 97ebf50035
3 changed files with 8 additions and 7 deletions

View File

@@ -18,6 +18,9 @@
#include <openrct2/config/Config.h>
#include <openrct2/localisation/Localisation.h>
#include <openrct2/sprites.h>
//#include <openrct2-ui/UiContext.h>
//#include <openrct2/ui/UiContext.h>
//#include <openrct2/PlatformEnvironment.h>
// 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;
}
}

View File

@@ -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

View File

@@ -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();