Skip to content

Commit abcfb6e

Browse files
committed
migrate to rime_get_api
the deprecated librime 0.9 API function declarations will be move to a separeate header file rime_api_deprecated.h in rime/librime#877
1 parent 43229d7 commit abcfb6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ template<typename T, typename = void>
3636
struct COMPAT {
3737
// fallback version if librime is old
3838
static an<ReverseDb> new_ReverseDb(const std::string &file) {
39-
return New<ReverseDb>(std::string(RimeGetUserDataDir()) + "/" + file);
39+
return New<ReverseDb>(string(rime_get_api()->get_user_data_dir()) + "/" + file);
4040
}
4141

4242
static string get_shared_data_dir() {

0 commit comments

Comments
 (0)