Skip to content
Permalink
Browse files

Minor fixes to type updater

  • Loading branch information...
Marlamin committed Oct 8, 2019
1 parent e5b17c5 commit 5694393ae4e0225e0f8edf6f0f02ee63f80ff796
Showing with 10 additions and 1 deletion.
  1. +10 −1 builds/scripts/updateTypes.php
@@ -12,7 +12,7 @@
if($row['id'] == 841983) continue; // Skip signaturefile
$ext = pathinfo($row['filename'], PATHINFO_EXTENSION);
if($ext == "unk") continue;
if($ext == "unk" || empty($ext)) continue;
echo "Adding type ".$ext." for FileData ID " . $row['id']."\n";
@@ -26,6 +26,8 @@
$textureFileData = $pdo->query("SELECT FileDataID FROM wowdata.texturefiledata")->fetchAll(PDO::FETCH_COLUMN);
$movieFileData = $pdo->query("SELECT ID FROM wowdata.moviefiledata")->fetchAll(PDO::FETCH_COLUMN);
$mp3Manifest = $pdo->query("SELECT ID FROM wowdata.manifestmp3")->fetchAll(PDO::FETCH_COLUMN);
$skitManifest = $pdo->query("SELECT ID from wowdata.soundkitentry")->fetchAll(PDO::FETCH_COLUMN);
$cdi = $pdo->query("SELECT PortraitTextureFileDataID, `TextureVariationFileDataID[0]`, `TextureVariationFileDataID[1]`, `TextureVariationFileDataID[2]` FROM wowdata.creaturedisplayinfo");
$cdifdids = [];
foreach($cdi->fetchAll(PDO::FETCH_ASSOC) as $entry){
@@ -70,6 +72,13 @@
$uq->bindParam(":id", $file['id']);
$uq->execute();
}
if(in_array($file['id'], $skitManifest)){
echo "File " . $file['id'] . " is an ogg!\n";
$uq->bindValue(":type", "ogg");
$uq->bindParam(":id", $file['id']);
$uq->execute();
}
}
/* Unknown but decrypted */

0 comments on commit 5694393

Please sign in to comment.
You can’t perform that action at this time.