Skip to content

Commit

Permalink
Sync with upstream engine code
Browse files Browse the repository at this point in the history
  • Loading branch information
lukhnos committed Oct 21, 2024
1 parent 9119a66 commit cc75f7c
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
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit cc75f7c

Please sign in to comment.