diff --git a/wizzardRedux/admin/import.php b/wizzardRedux/admin/import.php index eb61956..aa018ae 100644 --- a/wizzardRedux/admin/import.php +++ b/wizzardRedux/admin/import.php @@ -173,7 +173,7 @@ function import_dat($filename, $link) { add_rom($line, $machinename, $link, "disk", $gameid, $date); } - elseif ((strpos($line, "") !== false || strpos($line, "") !== false)d) + elseif ((strpos($line, "") !== false || strpos($line, "") !== false)) { $machinefound = false; $machinename = ""; @@ -184,7 +184,29 @@ function import_dat($filename, $link) // Process SoftwareList XML-derived DATs elseif ($format == "softwarelist") { - + if (strpos($line, ""); + $machinename = $xml->attributes()["name"]; + $machinename = preg_replace($search_pattern['EXT'], $search_pattern['REP'], $machinename); + $gameid = add_game($sysid, $machinename, $sourceid, $link); + } + elseif (strpos($line, "") !== false) + { + $machinefound = false; + $machinename = ""; + $description = ""; + $gameid = 0; + } } // Process original style RomVault DATs elseif ($format == "romvault")