mirror of
https://github.com/monero-project/monero.git
synced 2025-10-11 05:18:30 -04:00
Copies word lists directory to the location of the executable
This commit is contained in:
parent
19b142ceb8
commit
26ea53d461
4 changed files with 11 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue