diff --git a/openrct2.common.props b/openrct2.common.props
index 650b17347d..49e0395b7c 100644
--- a/openrct2.common.props
+++ b/openrct2.common.props
@@ -62,6 +62,7 @@
wininet.lib;imm32.lib;version.lib;winmm.lib;crypt32.lib;wldap32.lib;shlwapi.lib;setupapi.lib;bcrypt.lib;winhttp.lib;%(AdditionalDependencies)
+ libfribidi.lib;%(AdditionalDependencies)
/OPT:NOLBR /ignore:4099 %(AdditionalOptions)
diff --git a/openrct2.proj b/openrct2.proj
index 8b65bbe2ce..344a5815fd 100644
--- a/openrct2.proj
+++ b/openrct2.proj
@@ -22,7 +22,6 @@
/D "OPENRCT2_COMMIT_SHA1_SHORT=\"$(OPENRCT2_SHA1_SHORT)\"" $(OPENRCT2_CL_ADDITIONALOPTIONS)
/D "OPENRCT2_VERSION_TAG=\"$(OPENRCT2_DESCRIBE)\"" $(OPENRCT2_CL_ADDITIONALOPTIONS)
/D "USE_BREAKPAD" $(OPENRCT2_CL_ADDITIONALOPTIONS)
- /D "USE_FRIBIDI" $(OPENRCT2_CL_ADDITIONALOPTIONS)
$(MsBuildThisFileDirectory)
$(RootDir)bin\
diff --git a/src/openrct2/localisation/RTL.FriBidi.cpp b/src/openrct2/core/RTL.FriBidi.cpp
similarity index 96%
rename from src/openrct2/localisation/RTL.FriBidi.cpp
rename to src/openrct2/core/RTL.FriBidi.cpp
index 133cc09323..a04932b543 100644
--- a/src/openrct2/localisation/RTL.FriBidi.cpp
+++ b/src/openrct2/core/RTL.FriBidi.cpp
@@ -24,7 +24,7 @@ static constexpr const uint16_t BufferLength = 1024;
std::string FixRTL(std::string& input)
{
FriBidiChar utf32String[BufferLength] = { 0 };
- FriBidiStrIndex len = input.length() + 1;
+ auto len = static_cast(input.length() + 1);
fribidi_charset_to_unicode(FRIBIDI_CHAR_SET_UTF8, input.c_str(), len, utf32String);
FriBidiStrIndex utf32len = 0;
diff --git a/src/openrct2/localisation/RTL.ICU.cpp b/src/openrct2/core/RTL.ICU.cpp
similarity index 100%
rename from src/openrct2/localisation/RTL.ICU.cpp
rename to src/openrct2/core/RTL.ICU.cpp
diff --git a/src/openrct2/localisation/RTL.h b/src/openrct2/core/RTL.h
similarity index 100%
rename from src/openrct2/localisation/RTL.h
rename to src/openrct2/core/RTL.h
diff --git a/src/openrct2/libopenrct2.vcxproj b/src/openrct2/libopenrct2.vcxproj
index 29c589ab8f..2a36a0f165 100644
--- a/src/openrct2/libopenrct2.vcxproj
+++ b/src/openrct2/libopenrct2.vcxproj
@@ -34,7 +34,7 @@
__ENABLE_DISCORD__;__ENABLE_LIGHTFX__;USE_BENCHMARK;%(PreprocessorDefinitions)
USE_BREAKPAD;%(PreprocessorDefinitions)
- USE_FRIBIDI;%(PreprocessorDefinitions)
+ USE_FRIBIDI;%(PreprocessorDefinitions)
@@ -176,6 +176,7 @@
+
@@ -494,6 +495,8 @@
+
+
diff --git a/src/openrct2/localisation/LanguagePack.cpp b/src/openrct2/localisation/LanguagePack.cpp
index 731c3c36ba..4356266914 100644
--- a/src/openrct2/localisation/LanguagePack.cpp
+++ b/src/openrct2/localisation/LanguagePack.cpp
@@ -12,12 +12,12 @@
#include "../common.h"
#include "../core/FileStream.hpp"
#include "../core/Memory.hpp"
+#include "../core/RTL.h"
#include "../core/String.hpp"
#include "../core/StringBuilder.hpp"
#include "../core/StringReader.hpp"
#include "Language.h"
#include "Localisation.h"
-#include "RTL.h"
#include
#include