public static function getAll() { $handle = opendir(dir::games('')); while ($file = readdir($handle)) { if (in_array($file, ['.', '..'])) { continue; } self::$games[] = self::getConfig($file); } return self::$games; }