From 853914c046e460ab1becb2b9b4aa10e245628302 Mon Sep 17 00:00:00 2001 From: fxliang Date: Sun, 18 Feb 2024 14:44:07 +0800 Subject: [PATCH] fix typo --- WeaselDeployer/Configurator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WeaselDeployer/Configurator.cpp b/WeaselDeployer/Configurator.cpp index 31061de06..14f1b5502 100644 --- a/WeaselDeployer/Configurator.cpp +++ b/WeaselDeployer/Configurator.cpp @@ -37,10 +37,10 @@ Configurator::Configurator() void Configurator::Initialize() { RIME_STRUCT(RimeTraits, weasel_traits); -#ifdef _WIN64 +#ifndef _WIN64 std::string shared_dir = wstring_to_string(WeaselSharedDataPath().wstring(), CP_UTF8); #else - std::string shared_dir = wstring_to_string((WeaselSharedDataPath().parent_path().append("data")).wstring(), CP_UTF8); + std::string shared_dir = wstring_to_string((WeaselSharedDataPath().parent_path().parent_path().append("data")).wstring(), CP_UTF8); #endif std::string user_dir = wstring_to_string(WeaselUserDataPath().wstring(), CP_UTF8); weasel_traits.shared_data_dir = shared_dir.c_str();