From 75677672c86c57dc00e8197197079c58f87ea338 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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/WeaselDeployer/Configurator.cpp b/WeaselDeployer/Configurator.cpp index 31061de06..e4b598d7e 100644 --- a/WeaselDeployer/Configurator.cpp +++ b/WeaselDeployer/Configurator.cpp @@ -17,6 +17,7 @@ #include #include #include "WeaselDeployer.h" +#include static void CreateFileIfNotExist(std::string filename) { @@ -37,11 +38,12 @@ 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 + logn(shared_dir); std::string user_dir = wstring_to_string(WeaselUserDataPath().wstring(), CP_UTF8); weasel_traits.shared_data_dir = shared_dir.c_str(); weasel_traits.user_data_dir = user_dir.c_str();