Skip to content

Commit

Permalink
Merge pull request #155 from openvanilla/dev/sync-upstream-source
Browse files Browse the repository at this point in the history
Sync with upstream engine code
  • Loading branch information
zonble authored Oct 22, 2024
2 parents 9119a66 + cc75f7c commit 1fbc7e1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Engine/McBopomofoLM.cpp
Original file line number Diff line number Diff line change
@@ -56,12 +56,13 @@ void McBopomofoLM::loadAssociatedPhrasesV2(const char* associatedPhrasesPath) {

void McBopomofoLM::loadUserPhrases(const char* userPhrasesDataPath,
const char* excludedPhrasesDataPath) {
userPhrases_.close();
excludedPhrases_.close();

if (userPhrasesDataPath) {
userPhrases_.close();
userPhrases_.open(userPhrasesDataPath);
}
if (excludedPhrasesDataPath) {
excludedPhrases_.close();
excludedPhrases_.open(excludedPhrasesDataPath);
}
}

0 comments on commit 1fbc7e1

Please sign in to comment.