commit ab0d30cba3395f3a73fce1da796df44f453f012e parent 9334ed915300f7aea601a096c7db8a7f0f650387 Author: cfillion <cfillion@users.noreply.github.com> Date: Wed, 6 Dec 2017 02:21:45 -0500 don't convert the resource path given by REAPER 5.65+ from system default ANSI code page to UTF-8 on Windows [p=1921620] Diffstat:
M | src/reapack.cpp | | | 7 | ++++--- |
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/reapack.cpp b/src/reapack.cpp @@ -71,10 +71,11 @@ Path ReaPack::resourcePath() { #ifdef _WIN32 // convert from the current system codepage to UTF-8 - return Win32::narrow(Win32::widen(GetResourcePath(), CP_ACP)); -#else - return {GetResourcePath()}; + if(atof(GetAppVersion()) < 5.65) + return Win32::narrow(Win32::widen(GetResourcePath(), CP_ACP)); #endif + + return {GetResourcePath()}; } ReaPack::ReaPack(REAPER_PLUGIN_HINSTANCE instance)