Skip to content

Commit

Permalink
migrate to rime_get_api
Browse files Browse the repository at this point in the history
the deprecated librime 0.9 API function declarations will be move to a
separeate header file rime_api_deprecated.h in
rime/librime#877
  • Loading branch information
lotem committed May 18, 2024
1 parent 43229d7 commit abcfb6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ template<typename T, typename = void>
struct COMPAT {
// fallback version if librime is old
static an<ReverseDb> new_ReverseDb(const std::string &file) {
return New<ReverseDb>(std::string(RimeGetUserDataDir()) + "/" + file);
return New<ReverseDb>(string(rime_get_api()->get_user_data_dir()) + "/" + file);
}

static string get_shared_data_dir() {
Expand Down

0 comments on commit abcfb6e

Please sign in to comment.