$songHashMap[explode(' ', $v)[0]] = $slash[4] . '/' . $slash[5];
}
+$diff = lines(trim(file_get_contents(PATH_TO_GROOVENET . '/diffhash.txt')));
+$diffHashMap = [];
+foreach ($diff as $d) {
+ $bits = explode(' ', $d);
+ $e = array_chunk(explode(':', $bits[1]), 3);
+
+ $diffHashMap[$bits[0]] = map(function($e) {
+ if (isset($e[2])) {
+ return [$e[0] => [$e[1] => $e[2]]];
+ }
+
+ return [];
+ })($e);
+
+ $diffHashMap[$bits[0]] = array_merge_recursive(...$diffHashMap[$bits[0]]);
+}
+
file_put_contents(__DIR__ . '/hashmap.txt', serialize($songHashMap));
+file_put_contents(__DIR__ . '/diffhashmap.txt', serialize($diffHashMap));