Now we check a hash of the voice commands before writing the strings file to reduce how much we write to the hard disk. In implementing this, I realized that some code was being duplicated in an easily fixable way, so I created a Hasher object that keeps track of the hash.json file. Resolves #6
|
||
1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
|
||
11 | 11 |
|
12 | 12 |
|
13 | 13 |
|
14 |
|
|
15 | 14 |
|
16 | 15 |
|
17 | 16 |
|
18 | 17 |
|
19 | 18 |
|
19 |
|
|
20 | 20 |
|
21 | 21 |
|
22 | 22 |
|
|
||
27 | 27 |
|
28 | 28 |
|
29 | 29 |
|
30 |
|
|
31 |
|
|
32 | 30 |
|
33 | 31 |
|
34 | 32 |
|
|
||
37 | 35 |
|
38 | 36 |
|
39 | 37 |
|
38 |
|
|
39 |
|
|
40 |
|
|
40 | 41 |
|
41 |
|
|
42 |
|
|
42 | 43 |
|
43 | 44 |
|
44 | 45 |
|
|
||
71 | 72 |
|
72 | 73 |
|
73 | 74 |
|
75 |
|
|
76 |
|
|
77 |
|
|
78 |
|
|
79 |
|
|
80 |
|
|
81 |
|
|
82 |
|
|
83 |
|
|
84 |
|
|
85 |
|
|
86 |
|
|
87 |
|
|
88 |
|
|
89 |
|
|
90 |
|
|
91 |
|
|
74 | 92 |
|
75 | 93 |
|
76 | 94 |
|
|
||
3 | 3 |
|
4 | 4 |
|
5 | 5 |
|
6 |
|
|
7 |
|
|
8 | 6 |
|
9 | 7 |
|
10 | 8 |
|
11 | 9 |
|
10 |
|
|
11 |
|
|
12 | 12 |
|
13 | 13 |
|
14 | 14 |
|
15 | 15 |
|
16 |
|
|
16 | 17 |
|
17 | 18 |
|
18 | 19 |
|
|
||
21 | 22 |
|
22 | 23 |
|
23 | 24 |
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
|
25 |
|
|
26 |
|
|
33 | 27 |
|
34 | 28 |
|
35 |
|
|
29 |
|
|
36 | 30 |
|
37 | 31 |
|
38 | 32 |
|
|
||
75 | 69 |
|
76 | 70 |
|
77 | 71 |
|
78 |
|
|
79 |
|
|
80 |
|
|
72 |
|
|
73 |
|
|
81 | 74 |
|
82 | 75 |
|
83 | 76 |
|
|
||
15 | 15 |
|
16 | 16 |
|
17 | 17 |
|
18 |
|
|
18 |
|
|
19 |
|
|
19 | 20 |
|
20 | 21 |
|
21 | 22 |
|