Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
fxliang committed Feb 18, 2024
1 parent a8d9976 commit 7567767
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions WeaselDeployer/Configurator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <fstream>
#include <regex>
#include "WeaselDeployer.h"
#include <loog.h>

static void CreateFileIfNotExist(std::string filename)
{
Expand All @@ -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();
Expand Down

0 comments on commit 7567767

Please sign in to comment.