Started parseable mod collection.
This commit is contained in:
9
tests/showmods.php
Normal file
9
tests/showmods.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
$mods = glob('../mods/*.json');
|
||||
|
||||
foreach ($mods as $mod) {
|
||||
$json = file_get_contents($mod);
|
||||
$data = json_decode($json, true);
|
||||
echo $mod . ': ' . $data['name'] . PHP_EOL;
|
||||
}
|
Reference in New Issue
Block a user