mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-18 05:58:19 +00:00
7379a64004
So far only done scripts directory, will do the rest if this is considered good
10 lines
313 B
Python
10 lines
313 B
Python
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")
|