init
This commit is contained in:
9
scripts/wordlist.py
Normal file
9
scripts/wordlist.py
Normal file
@ -0,0 +1,9 @@
|
||||
print("#ifndef GENERATED_WORDLIST_H")
|
||||
print("#define GENERATED_WORDLIST_H")
|
||||
print("const char g_aFallbackWordlist[][32] = {")
|
||||
with open("data/wordlist.txt", encoding="utf-8") as f:
|
||||
for line in f:
|
||||
word = line.strip().split("\t")[1]
|
||||
print(f"\t\"{word}\", ")
|
||||
print("};")
|
||||
print("#endif // GENERATED_WORDLIST_H")
|
Reference in New Issue
Block a user