Skip to content

Commit

Permalink
migrate to rime_get_api (#345)
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 authored May 19, 2024
1 parent 43229d7 commit f5ffb6b
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 f5ffb6b

Please sign in to comment.