diff options
author | Oran Juice <oranjuices@hotmail.com> | 2014-09-24 22:44:36 +0530 |
---|---|---|
committer | Oran Juice <oranjuices@hotmail.com> | 2014-09-24 22:44:36 +0530 |
commit | 26ea53d4611bbb81cf12be61daa30c489a942bda (patch) | |
tree | 1f875fdd1d57dad1ff911eae937501b240e4bbc4 /src/mnemonics/electrum-words.cpp | |
parent | Duh. Had left word list in commit. (diff) | |
download | monero-26ea53d4611bbb81cf12be61daa30c489a942bda.tar.xz |
Copies word lists directory to the location of the executable
Diffstat (limited to 'src/mnemonics/electrum-words.cpp')
-rw-r--r-- | src/mnemonics/electrum-words.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mnemonics/electrum-words.cpp b/src/mnemonics/electrum-words.cpp index 8ab618b16..3d79ecf6e 100644 --- a/src/mnemonics/electrum-words.cpp +++ b/src/mnemonics/electrum-words.cpp @@ -49,8 +49,9 @@ namespace std::map<std::string,uint32_t> words_map; std::vector<std::string> words_array; + const std::string WORD_LISTS_DIRECTORY = "wordlists"; + const std::string LANGUAGES_DIRECTORY = "languages"; const std::string OLD_WORD_FILE = "old-word-list"; - const std::string WORD_LIST_DIRECTORY = "wordlists"; bool is_first_use() { @@ -85,11 +86,11 @@ namespace crypto { if (old_word_list) { - create_data_structures(OLD_WORD_FILE); + create_data_structures(WORD_LISTS_DIRECTORY + '/' + OLD_WORD_FILE); } else { - create_data_structures(WORD_LIST_DIRECTORY + '/' + language); + create_data_structures(WORD_LISTS_DIRECTORY + '/' + LANGUAGES_DIRECTORY + '/' + language); } } |