From c6b10bb0513aa5982ed6515474158b34b41d21f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Thu, 27 Aug 2020 21:03:41 +0200 Subject: [PATCH] Make GetCurrentExecutableDirectory public (#12791) --- src/openrct2/platform/Platform.Win32.cpp | 2 +- src/openrct2/platform/Platform2.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/openrct2/platform/Platform.Win32.cpp b/src/openrct2/platform/Platform.Win32.cpp index cadbd3e1a3..ed1b9e205c 100644 --- a/src/openrct2/platform/Platform.Win32.cpp +++ b/src/openrct2/platform/Platform.Win32.cpp @@ -144,7 +144,7 @@ namespace Platform } } - static std::string GetCurrentExecutableDirectory() + std::string GetCurrentExecutableDirectory() { auto exePath = GetCurrentExecutablePath(); auto exeDirectory = Path::GetDirectory(exePath); diff --git a/src/openrct2/platform/Platform2.h b/src/openrct2/platform/Platform2.h index e1c87a4898..35162dfde1 100644 --- a/src/openrct2/platform/Platform2.h +++ b/src/openrct2/platform/Platform2.h @@ -33,6 +33,7 @@ namespace Platform std::string GetInstallPath(); std::string GetDocsPath(); std::string GetCurrentExecutablePath(); + std::string GetCurrentExecutableDirectory(); bool FileExists(const std::string path); rct2_time GetTimeLocal(); rct2_date GetDateLocal();