summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/pinyin.cpp10
-rw-r--r--src/pinyin.h2
2 files changed, 11 insertions, 1 deletions
diff --git a/src/pinyin.cpp b/src/pinyin.cpp
index fa18db7..0549f7c 100644
--- a/src/pinyin.cpp
+++ b/src/pinyin.cpp
@@ -90,6 +90,16 @@ static bool check_format(const char * userdir){
}
filename = g_build_filename
+ (userdir, "user_pinyin_index.bin", NULL);
+ unlink(filename);
+ g_free(filename);
+
+ filename = g_build_filename
+ (userdir, "user_phrase_index.bin", NULL);
+ unlink(filename);
+ g_free(filename);
+
+ filename = g_build_filename
(userdir, "user.db", NULL);
unlink(filename);
g_free(filename);
diff --git a/src/pinyin.h b/src/pinyin.h
index 6cde671..96f9023 100644
--- a/src/pinyin.h
+++ b/src/pinyin.h
@@ -590,7 +590,7 @@ typedef ChewingKeyVector PinyinKeyVector;
typedef ChewingKeyRestVector PinyinKeyPosVector;
-#define LIBPINYIN_FORMAT_VERSION "0.8.0"
+#define LIBPINYIN_FORMAT_VERSION "0.8.1"
};